File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ declare_clippy_lint! {
25
25
///
26
26
/// // Bad
27
27
/// let a = 1.0;
28
- /// let b = std:: f64::NAN;
28
+ /// let b = f64::NAN;
29
29
///
30
30
/// let _not_less_or_equal = !(a <= b);
31
31
///
32
32
/// // Good
33
33
/// let a = 1.0;
34
- /// let b = std:: f64::NAN;
34
+ /// let b = f64::NAN;
35
35
///
36
36
/// let _not_less_or_equal = match a.partial_cmp(&b) {
37
37
/// None | Some(Ordering::Greater) => true,
Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ declare_clippy_lint! {
837
837
///
838
838
/// **Example:**
839
839
/// ```rust
840
- /// let x = std:: u64::MAX;
840
+ /// let x = u64::MAX;
841
841
/// x as f64;
842
842
/// ```
843
843
pub CAST_PRECISION_LOSS ,
@@ -904,7 +904,7 @@ declare_clippy_lint! {
904
904
///
905
905
/// **Example:**
906
906
/// ```rust
907
- /// std:: u32::MAX as i32; // will yield a value of `-1`
907
+ /// u32::MAX as i32; // will yield a value of `-1`
908
908
/// ```
909
909
pub CAST_POSSIBLE_WRAP ,
910
910
pedantic,
@@ -1752,7 +1752,7 @@ declare_clippy_lint! {
1752
1752
/// ```rust
1753
1753
/// let vec: Vec<isize> = Vec::new();
1754
1754
/// if vec.len() <= 0 {}
1755
- /// if 100 > std:: i32::MAX {}
1755
+ /// if 100 > i32::MAX {}
1756
1756
/// ```
1757
1757
pub ABSURD_EXTREME_COMPARISONS ,
1758
1758
correctness,
You can’t perform that action at this time.
0 commit comments