Skip to content

Commit c531974

Browse files
committed
connection: stop using legacy numeric constant
Clippy complains about using `std::i16::MAX`, instead of `i16::MAX`. This commit fixes the issue.
1 parent cb332fa commit c531974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla/src/transport/connection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ struct StreamIdSet {
18261826

18271827
impl StreamIdSet {
18281828
fn new() -> Self {
1829-
const BITMAP_SIZE: usize = (std::i16::MAX as usize + 1) / 64;
1829+
const BITMAP_SIZE: usize = (i16::MAX as usize + 1) / 64;
18301830
Self {
18311831
used_bitmap: vec![0; BITMAP_SIZE].into_boxed_slice(),
18321832
}

0 commit comments

Comments
 (0)