aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-31 04:58:51 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit42a18751eeaaa1637a5446bc5e4965815aa959c0 (patch)
treef5990642f9e8b96944e055e7bb6f863787868693 /src/emitter.rs
parent0c28d7e957fd918d72f4e984533751cacd917e06 (diff)
chore: move allow lint check attribute
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs3
1 files changed, 2 insertions, 1 deletions
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<O> {
/// 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<O> {
/// 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.