Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Rust 1.80.0 #34

Merged
merged 4 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.78.0
toolchain: 1.80.0
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --all-features --all-targets --workspace
Expand Down
6 changes: 3 additions & 3 deletions ratchet_core/src/split/bilock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<T> BiLock<T> {

/// Reunites two `BiLock`s that form a pair or returns an error if they do not guard the same
/// value.
pub fn reunite(self, other: BiLock<T>) -> Result<T, ReuniteError<T>>
pub fn reunite(self, other: BiLock<T>) -> Result<T, ReuniteError<BiLock<T>>>
where
T: Unpin,
{
Expand Down Expand Up @@ -151,7 +151,7 @@ impl<T: Unpin> DerefMut for BiLockGuard<'_, T> {
}
}

pub struct ReuniteError<T>(pub BiLock<T>, pub BiLock<T>);
pub struct ReuniteError<T>(pub T, pub T);

impl<T> Debug for ReuniteError<T> {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
Expand All @@ -160,7 +160,7 @@ impl<T> Debug for ReuniteError<T> {
}

impl<T> Display for ReuniteError<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(f, "Attempted to reunite two BiLocks that don't form a pair")
}
}
Expand Down
3 changes: 1 addition & 2 deletions ratchet_rs/examples/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ use ratchet_rs::{
Error, Message, NoExtProvider, PayloadType, ProtocolRegistry, UpgradedServer, WebSocketConfig,
};
use tokio::net::TcpListener;
use tokio_stream::wrappers::TcpListenerStream;
use tokio_stream::StreamExt;
use tokio_stream::{wrappers::TcpListenerStream, StreamExt};

#[tokio::main]
async fn main() -> Result<(), Error> {
Expand Down
2 changes: 1 addition & 1 deletion ratchet_rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! # Features
//! - Implement your own own extensions using [ratchet_ext](../ratchet_ext).
//! - Per-message deflate with [ratchet_deflate](../ratchet_deflate) or enable with the `deflate`
//! feature.
//! feature.
//! - Split WebSocket with the `split` feature.
//!
//! # Error handling
Expand Down
Loading