Skip to content

Commit

Permalink
connection: stop using legacy numeric constant
Browse files Browse the repository at this point in the history
Clippy complains about using `std::i16::MAX`, instead of
`i16::MAX`. This commit fixes the issue.
  • Loading branch information
muzarski committed Jun 19, 2024
1 parent cb332fa commit c531974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scylla/src/transport/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down

0 comments on commit c531974

Please sign in to comment.