mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-08-01 01:11:58 +00:00
chore: update Rust version for clippy check to 1.71
We also need to prepend the `clippy::allow` with an `unknown_lints` lint because clippy 1.71 does not (yet) know about this new lint. Pull-Request: #4219.
This commit is contained in:
@@ -55,7 +55,7 @@ where
|
||||
|
||||
fn upgrade_inbound(self, socket: C, _: Self::Info) -> Self::Future {
|
||||
future::ready(Ok(Multiplex {
|
||||
#[allow(clippy::arc_with_non_send_sync)] // `T` is not enforced to be `Send` but we don't want to constrain it either.
|
||||
#[allow(unknown_lints, clippy::arc_with_non_send_sync)] // `T` is not enforced to be `Send` but we don't want to constrain it either.
|
||||
io: Arc::new(Mutex::new(io::Multiplexed::new(socket, self))),
|
||||
}))
|
||||
}
|
||||
@@ -71,7 +71,7 @@ where
|
||||
|
||||
fn upgrade_outbound(self, socket: C, _: Self::Info) -> Self::Future {
|
||||
future::ready(Ok(Multiplex {
|
||||
#[allow(clippy::arc_with_non_send_sync)] // `T` is not enforced to be `Send` but we don't want to constrain it either.
|
||||
#[allow(unknown_lints, clippy::arc_with_non_send_sync)] // `T` is not enforced to be `Send` but we don't want to constrain it either.
|
||||
io: Arc::new(Mutex::new(io::Multiplexed::new(socket, self))),
|
||||
}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user