From b48cc0fd07cfe12385729f732457bf4cb59a0a76 Mon Sep 17 00:00:00 2001 From: Tatsuya Kawano Date: Sun, 18 Aug 2024 00:55:30 +0000 Subject: [PATCH 1/2] Fix a Clippy warning clippy 0.1.81 (6c199c89c72 2024-08-15) --- src/common/frequency_sketch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/frequency_sketch.rs b/src/common/frequency_sketch.rs index 824c70b8..c518b167 100644 --- a/src/common/frequency_sketch.rs +++ b/src/common/frequency_sketch.rs @@ -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 { From 8854bb10a5e756623ae50711e371f39b2ea9d4cf Mon Sep 17 00:00:00 2001 From: Tatsuya Kawano Date: Sun, 18 Aug 2024 01:32:41 +0000 Subject: [PATCH 2/2] Fix the CI for the MSRV 1.65.0 - Pin `tokio` version to `1.38.1`. --- .ci_extras/pin-crate-vers-msrv.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci_extras/pin-crate-vers-msrv.sh b/.ci_extras/pin-crate-vers-msrv.sh index af07b6ca..b1e8f239 100755 --- a/.ci_extras/pin-crate-vers-msrv.sh +++ b/.ci_extras/pin-crate-vers-msrv.sh @@ -6,3 +6,4 @@ set -eux # cargo update -p --precise 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