Skip to content

Commit

Permalink
Ignore uninhabited_references clippy lint
Browse files Browse the repository at this point in the history
    warning: dereferencing a reference to an uninhabited type is undefined behavior
      --> src/diff.rs:79:19
       |
    79 |             match *self {}
       |                   ^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninhabited_references
       = note: `-W clippy::uninhabited-references` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::uninhabited_references)]`
  • Loading branch information
dtolnay committed Dec 17, 2023
1 parent c1f2d24 commit 8f62662
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 @@ -230,6 +230,7 @@
clippy::test_attr_in_doctest,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref,
clippy::uninhabited_references,
clippy::unused_self,
clippy::while_let_on_iterator,
)]
Expand Down

0 comments on commit 8f62662

Please sign in to comment.