You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/0000-clippy-uno.md
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -240,10 +240,7 @@ implement equality for a type involving floats).
240
240
subtracting elements in an Add impl.
241
241
-[approx_constant](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#approx_constant): Checks for floating point literals that approximate
respectively, suggesting to use the predefined constant.
243
+
[`std::f32::consts`](https://doc.rust-lang.org/stable/std/f32/consts/#constants) or [`std::f64::consts`](https://doc.rust-lang.org/stable/std/f64/consts/#constants), respectively, suggesting to use the predefined constant.
247
244
-[while_immutable_condition](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#while_immutable_condition): Checks whether variables used within while loop condition
248
245
can be (and are) mutated in the body.
249
246
-[never_loop](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#never_loop): Checks for loops that will always `break`, `return` or
@@ -303,7 +300,8 @@ and no implementation of
303
300
where the `Default` can be derived by `#[derive(Default)]`.
304
301
-[zero_ptr](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#zero_ptr): Catch casts from `0` to some pointer type
305
302
-[wrong_self_convention](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#wrong_self_convention): Checks for methods with certain name prefixes and which
306
-
doesn't match how self is taken.- [iter_skip_next](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#iter_skip_next): Checks for use of `.skip(x).next()` on iterators.
303
+
doesn't match how self is taken.
304
+
-[iter_skip_next](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#iter_skip_next): Checks for use of `.skip(x).next()` on iterators.
307
305
-[large_digit_groups](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#large_digit_groups): Warns if the digits of an integral or floating-point
308
306
constant are grouped into groups that
309
307
are too large.
@@ -452,10 +450,10 @@ suggests the latter.
452
450
definitions
453
451
-[precedence](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#precedence): Checks for operations where precedence may be unclear
454
452
and suggests to add parentheses. Currently it catches the following:
455
-
* mixed usage of arithmetic and bit shifting/combining operators without
456
-
parentheses
457
-
* a "negative" numeric literal (which is really a unary `-` followed by a
458
-
numeric literal)
453
+
- mixed usage of arithmetic and bit shifting/combining operators without
454
+
parentheses
455
+
- a "negative" numeric literal (which is really a unary `-` followed by a
456
+
numeric literal)
459
457
followed by a method call
460
458
-[useless_transmute](https://rust-lang-nursery.github.io/rust-clippy/master/index.html#useless_transmute): Checks for transmutes to the original type of the object
0 commit comments