From: Ian Jackson Date: Sun, 4 Feb 2024 18:37:13 +0000 (+0000) Subject: Suppress unknown lints X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=refs%2Fheads%2Fwip.clippy;p=mastodonochrome.git Suppress unknown lints --- 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)]