aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-28 10:05:57 +0100
committerMartin Fischer <martin@push-f.com>2021-11-29 15:11:01 +0100
commit8c3be2ac471edc6f24059d552e82fb5acc3d7cc2 (patch)
tree8fb0e4e9ffda759e64f4464a96c0091ce1829a8c
parent7c1d81e134dcc33ae78d992ab3db30decadec6d9 (diff)
refactor: eliminate line wrapping in go! macro
-rw-r--r--src/tokenizer/mod.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tokenizer/mod.rs b/src/tokenizer/mod.rs
index 274bf44..a8ec39f 100644
--- a/src/tokenizer/mod.rs
+++ b/src/tokenizer/mod.rs
@@ -791,8 +791,9 @@ impl<Sink: TokenSink> Tokenizer<Sink> {
match get_char!(self, input) {
'/' => go!(self: clear_temp; to RawEndTagOpen ScriptDataEscaped Escaped),
c => match lower_ascii_letter(c) {
- Some(cl) => go!(self: clear_temp; push_temp cl; emit '<'; emit c;
- to ScriptDataEscapeStart DoubleEscaped),
+ Some(cl) => {
+ go!(self: clear_temp; push_temp cl; emit '<'; emit c; to ScriptDataEscapeStart DoubleEscaped)
+ }
None => go!(self: emit '<'; reconsume RawData ScriptDataEscaped Escaped),
},
}
@@ -1144,8 +1145,9 @@ impl<Sink: TokenSink> Tokenizer<Sink> {
go!(self: error; create_doctype; push_doctype_name '\u{fffd}'; to DoctypeName)
}
'>' => go!(self: error; create_doctype; force_quirks; emit_doctype; to Data),
- c => go!(self: create_doctype; push_doctype_name (c.to_ascii_lowercase());
- to DoctypeName),
+ c => {
+ go!(self: create_doctype; push_doctype_name (c.to_ascii_lowercase()); to DoctypeName)
+ }
}
},