Skip to content

Commit

Permalink
Merge pull request #451 from moka-rs/fix-ci/2024-08-18/v012
Browse files Browse the repository at this point in the history
Fix CI: Fix a Clippy warning and pin tokio version for the MSRV
  • Loading branch information
tatsuya6502 authored Aug 18, 2024
2 parents f219d93 + 8854bb1 commit a2123dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ci_extras/pin-crate-vers-msrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ set -eux
# cargo update -p <crate> --precise <version>
cargo update -p actix-rt --precise 2.9.0
cargo update -p cc --precise 1.0.105
cargo update -p tokio --precise 1.38.1
2 changes: 1 addition & 1 deletion src/common/frequency_sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl FrequencySketch {
}

self.table = vec![0; table_size as usize].into_boxed_slice();
self.table_mask = 0.max(table_size - 1) as u64;
self.table_mask = table_size.saturating_sub(1) as u64;
self.sample_size = if cap == 0 {
10
} else {
Expand Down

0 comments on commit a2123dc

Please sign in to comment.