Skip to content

Commit

Permalink
Ignore unconditional_recursion clippy lint due to false positive
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#12133

    warning: function cannot return without recursing
       --> src/map.rs:276:5
        |
    276 | /     fn eq(&self, other: &Self) -> bool {
    277 | |         self.map.eq(&other.map)
    278 | |     }
        | |_____^
        |
    note: recursive call site
       --> src/map.rs:277:9
        |
    277 |         self.map.eq(&other.map)
        |         ^^^^^^^^^^^^^^^^^^^^^^^
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion
        = note: `-W clippy::unconditional-recursion` implied by `-W clippy::all`
        = help: to override `-W clippy::all` add `#[allow(clippy::unconditional_recursion)]`
  • Loading branch information
dtolnay committed Jan 12, 2024
1 parent 0131ac6 commit 6d44b9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@
clippy::needless_late_init,
clippy::return_self_not_must_use,
clippy::transmute_ptr_to_ptr,
clippy::unconditional_recursion, // https://github.com/rust-lang/rust-clippy/issues/12133
clippy::unnecessary_wraps
)]
// Ignored clippy_pedantic lints
Expand Down

0 comments on commit 6d44b9f

Please sign in to comment.