aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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.