Skip to content

Commit a7ac5c0

Browse files
committed
linter
1 parent 9779cfe commit a7ac5c0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

crates/geo_filters/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ pub trait Count<M: Method> {
7373
fn debug_assert_f32s_in_range(v: f32) {
7474
// The geometric filter should never produce these values.
7575
// These assertions failing indicates that there is a bug.
76-
debug_assert!(v.is_finite(), "Estimated size must be finite, got {}", v);
77-
debug_assert!(v >= 0.0, "Estimated size must be non-negative, got {}", v);
76+
debug_assert!(v.is_finite(), "Estimated size must be finite, got {v}");
77+
debug_assert!(v >= 0.0, "Estimated size must be non-negative, got {v}");
7878
debug_assert!(
7979
v <= usize::MAX as f32,
80-
"Estimated size {} exceeds usize::MAX",
81-
v
80+
"Estimated size {v} exceeds usize::MAX",
8281
);
8382
}
8483

0 commit comments

Comments
 (0)