From a926413279d0c5a268856f19d27fa2da2258bdb8 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 16 Jun 2026 14:18:29 +0100 Subject: [PATCH] Use `#[expect]` instead of `#[allow]` for Clippy lint exclusions Unlike `#[allow]`, `#[expect]` (stable since Rust 1.81) emits a warning if the lint stops firing, so the attribute flags itself as removable should the lint no longer apply: https://doc.rust-lang.org/rustc/lints/levels.html#expect GUS-W-23022354. --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 60b45bb..121ef14 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -146,7 +146,7 @@ fn on_determine_package_manager_error(error: DeterminePackageManagerError) { } } -#[allow(clippy::too_many_lines)] +#[expect(clippy::too_many_lines)] fn on_requested_python_version_error(error: RequestedPythonVersionError) { const RECOMMEND_NOT_SPECIFYING_PATCH_MESSAGE: &str = indoc! {" We strongly recommend that you don't specify the Python patch