From 8f6266204b65bcab1d0ef3833a2cf38ff031e13f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 16 Dec 2023 18:20:11 -0800 Subject: [PATCH] Ignore uninhabited_references clippy lint 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)]` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 154a904..ccf5c24 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, )]