Skip to content

Commit 33e9523

Browse files
author
bors-servo
authored
Auto merge of #248 - nox:end, r=Ms2ger
Properly call TokenSink::end from Tokenizer::end <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/html5ever/248) <!-- Reviewable:end -->
2 parents c19d559 + dff0dee commit 33e9523

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "html5ever"
4-
version = "0.12.0"
4+
version = "0.12.1"
55
authors = [ "The html5ever Project Developers" ]
66
license = "MIT / Apache-2.0"
77
repository = "https://github.com/servo/html5ever"

src/tokenizer/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,8 @@ impl<Sink: TokenSink> Tokenizer<Sink> {
13071307
}
13081308
}
13091309

1310+
self.sink.end();
1311+
13101312
if self.opts.profile {
13111313
self.dump_profile();
13121314
}

src/tree_builder/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ impl<Handle, Sink> TokenSink
378378
{
379379
type Handle = Handle;
380380

381-
382381
fn process_token(&mut self, token: tokenizer::Token, line_number: u64) -> TokenSinkResult<Handle> {
383382
if line_number != self.current_line {
384383
self.sink.set_current_line(line_number);

0 commit comments

Comments
 (0)