From 8570d00f2b195010205d9fcf230be68cdfaa806a Mon Sep 17 00:00:00 2001 From: Kevin Nakamura Date: Fri, 6 Sep 2024 20:08:08 +0900 Subject: [PATCH] 1.81 clippy --- Cargo.toml | 1 + src/parse.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7b2a1b8..927874e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ unsafe_code = "deny" [lints.clippy] nursery = { level = "warn", priority = -1 } pedantic = { level = "warn", priority = -1 } +allow_attributes = "warn" inline_always = "allow" must_use_candidate = "allow" unwrap_used = "warn" diff --git a/src/parse.rs b/src/parse.rs index 335ddf8..00af860 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -1,4 +1,4 @@ -#![allow(clippy::inline_always)] +#![expect(clippy::inline_always)] use alloc::collections::{BTreeMap, BTreeSet}; use alloc::vec::Vec; @@ -273,7 +273,7 @@ fn parse_set<'e>(walker: &mut Walker, slice: &'e str) -> Result, Error> } #[inline] -#[allow(clippy::needless_pass_by_ref_mut)] +#[expect(clippy::needless_pass_by_ref_mut, reason = "once implemented, walker will need to be mut")] fn parse_tag<'e>(walker: &mut Walker) -> Result, Error> { Err(Error { code: Code::Unimplemented("Tagged Element"),