summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-17 08:57:15 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 11:40:58 +0200
commitc899f2f36df0371af776f21231ccdf0d30a2aaab (patch)
treebead2ebaa66c9b114aa24dbf8b403b029842999b /src
parent235d810c1b128a4f862289cb70fc31651a6f2068 (diff)
refactor: add default for S type param of DefaultEmitter
Diffstat (limited to 'src')
-rw-r--r--src/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index 769d233..e441eb7 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -159,7 +159,7 @@ pub trait Emitter<R> {
}
/// The default implementation of [`Emitter`], used to produce tokens.
-pub struct DefaultEmitter<R, S> {
+pub struct DefaultEmitter<R, S = ()> {
current_characters: String,
current_token: Option<Token<S>>,
current_attribute: Option<(String, Attribute<S>)>,