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:
Thomas Eizinger 2023-07-19 15:25:58 +02:00 committed by GitHub
parent 132688961f
commit a10733f8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
rust-version: [ rust-version: [
1.70.0, # current stable 1.71.0, # current stable
beta beta
] ]
steps: steps:

View File

@ -55,7 +55,7 @@ where
fn upgrade_inbound(self, socket: C, _: Self::Info) -> Self::Future { fn upgrade_inbound(self, socket: C, _: Self::Info) -> Self::Future {
future::ready(Ok(Multiplex { 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))), 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 { fn upgrade_outbound(self, socket: C, _: Self::Info) -> Self::Future {
future::ready(Ok(Multiplex { 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))), io: Arc::new(Mutex::new(io::Multiplexed::new(socket, self))),
})) }))
} }