chiark / gitweb /
Suppress unknown lints wip.clippy
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 18:37:13 +0000 (18:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 18:37:13 +0000 (18:37 +0000)
src/main.rs

index ed1bb1422b63081dc5c628e2d7d98ea8f0f3907b..57e3da068d78ce979f781c182da615be52b0545b 100644 (file)
@@ -1,6 +1,12 @@
 // These allows should be in a [lints] in Cargo.toml,
 // which was stabilised in Rust 1.74.  So maybe not do that yet.
 
+// We don't mind this accumulating lints indefinitely.  Misspellings
+// are unlikely because we put things here to suppress lints we're seeing,
+// in which case a misspelling wouldn't be effective.  Eventually,
+// we might run a CI check for *deprecated* lints with our MSRV,
+// and *unknown* lints with nightly.  But this will definitely do:
+#![allow(unknown_lints)]
 // Non-minimal coding patterns we sometimes use for clarity
 #![allow(clippy::collapsible_if)]
 #![allow(clippy::single_match)]