Skip to content

Commit 54eeb4d

Browse files
Demote float_cmp to restriction
1 parent 871ad80 commit 54eeb4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ declare_clippy_lint! {
113113
/// if (y - x).abs() > error_margin { }
114114
/// ```
115115
pub FLOAT_CMP,
116-
correctness,
116+
restriction,
117117
"using `==` or `!=` on float values instead of comparing difference with an epsilon"
118118
}
119119

0 commit comments

Comments
 (0)