Skip to content

Commit 85b0d8b

Browse files
committed
codewide: adjust for MSRV 1.80
After the recent bump of MSRV to 1.80, several places in code went obsolete.
1 parent 84c4b4f commit 85b0d8b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

scylla/src/client/session_builder.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use tracing::warn;
2828
mod sealed {
2929
// This is a sealed trait - its whole purpose is to be unnameable.
3030
// This means we need to disable the check.
31-
#[allow(unknown_lints)] // Rust 1.66 doesn't know this lint
3231
#[allow(unnameable_types)]
3332
pub trait Sealed {}
3433
}

scylla/src/network/tls.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ impl TlsProvider {
8383
};
8484

8585
cloud_config.make_tls_config_for_scylla_cloud_host(host_id, dc, address)
86-
// inspect_err() is stable since 1.76.
87-
// TODO: use inspect_err once we bump MSRV to at least 1.76.
88-
.map_err(|err| {
86+
.inspect_err(|err| {
8987
warn!(
9088
"TlsProvider for SNI connection to Scylla Cloud node {{ host_id={:?}, dc={:?} at {} }} could not be set up: {}\n Proceeding with attempting probably nonworking connection",
9189
host_id,

scylla/src/routing/partitioner.rs

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ impl PartitionerHasher for PartitionerHasherAny {
7878
mod sealed {
7979
// This is a sealed trait - its whole purpose is to be unnameable.
8080
// This means we need to disable the check.
81-
#[allow(unknown_lints)] // Rust 1.70 doesn't know this lint
8281
#[allow(unnameable_types)]
8382
pub trait Sealed {}
8483
}

0 commit comments

Comments
 (0)