From 42a18751eeaaa1637a5446bc5e4965815aa959c0 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 31 Aug 2023 04:58:51 +0200 Subject: chore: move allow lint check attribute --- src/emitter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emitter.rs b/src/emitter.rs index f5c3ceb..6d9b60e 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -27,6 +27,8 @@ use crate::Error; /// checks that would emit errors. /// /// * If you don't care about attributes at all, you can make all related methods a noop. + +#[allow(unused_variables)] // workaround for https://github.com/rust-lang/rust/issues/91074 pub trait Emitter { /// The token type emitted by this emitter. This controls what type of values the [`Tokenizer`](crate::Tokenizer) /// yields when used as an iterator. @@ -124,7 +126,6 @@ pub trait Emitter { /// Called before the first push_attribute_value call. /// /// If there is no current attribute, this method may panic. - #[allow(unused_variables)] fn init_attribute_value(&mut self, syntax: AttrValueSyntax, offset: O) {} /// Append a string to the current attribute's name. -- cgit v1.2.3