From c531974040b27f261e6387557d3b59cc5f70a3f0 Mon Sep 17 00:00:00 2001 From: muzarski Date: Tue, 18 Jun 2024 18:42:07 +0200 Subject: [PATCH] connection: stop using legacy numeric constant Clippy complains about using `std::i16::MAX`, instead of `i16::MAX`. This commit fixes the issue. --- scylla/src/transport/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scylla/src/transport/connection.rs b/scylla/src/transport/connection.rs index d34824f97e..cd225aae55 100644 --- a/scylla/src/transport/connection.rs +++ b/scylla/src/transport/connection.rs @@ -1826,7 +1826,7 @@ struct StreamIdSet { impl StreamIdSet { fn new() -> Self { - const BITMAP_SIZE: usize = (std::i16::MAX as usize + 1) / 64; + const BITMAP_SIZE: usize = (i16::MAX as usize + 1) / 64; Self { used_bitmap: vec![0; BITMAP_SIZE].into_boxed_slice(), }