fix: resolve remaining clippy errors in ddsketch

- Replace approximate PI/E constants with non-famous value in test
- Fix reversed empty range (2048..0) → (0..2048).rev() in store test

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cong.xie
2026-02-18 15:54:27 -05:00
parent aeea65f61d
commit 2dc4e9ef78
2 changed files with 2 additions and 4 deletions

View File

@@ -510,9 +510,7 @@ mod tests {
#[test]
fn test_var_double_roundtrip() {
for v in [
0.0, 1.0, 2.0, 5.0, 15.0, 42.0, 100.0, 1e-9, 1e15, 0.5, 3.14159,
] {
for v in [0.0, 1.0, 2.0, 5.0, 15.0, 42.0, 100.0, 1e-9, 1e15, 0.5, 7.77] {
let mut buf = Vec::new();
encode_var_double(&mut buf, v);
let mut input = buf.as_slice();

View File

@@ -245,7 +245,7 @@ mod tests {
fn test_simple_store_rev() {
let mut s = Store::new(2048);
for i in 2048..0 {
for i in (0..2048).rev() {
s.add(i);
}
}