From 702f9fb3aeca5caad1d58b72ba4ee57798aada71 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 4 Feb 2024 18:37:13 +0000 Subject: [PATCH] Suppress unknown lints --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index ed1bb14..57e3da0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)] -- 2.30.2