Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a7ac5c0

Browse filesBrowse files
committed
linter
1 parent 9779cfe commit a7ac5c0
Copy full SHA for a7ac5c0

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Collapse file

‎crates/geo_filters/src/lib.rs‎

Copy file name to clipboardExpand all lines: crates/geo_filters/src/lib.rs
+3-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.