Skip to content

Commit

Permalink
Format rules.rs
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Wülker <[email protected]>
  • Loading branch information
simonwuelker committed Jan 8, 2025
1 parent cbd26f3 commit 30ca1f6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions html5ever/src/tree_builder/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::tree_builder::{
TreeSink,
};
use crate::QualName;
use markup5ever::{expanded_name, local_name, namespace_url, ns};
use markup5ever::{expanded_name, local_name, namespace_url, ns};
use std::borrow::Cow::Borrowed;

use crate::tendril::SliceExt;
Expand Down Expand Up @@ -420,12 +420,9 @@ where
}
}

match to_close {
Some(name) => {
self.generate_implied_end_except(name.clone());
self.expect_to_close(name);
}
None => (),
if let Some(name) = to_close {
self.generate_implied_end_except(name.clone());
self.expect_to_close(name);
}

self.close_p_element_in_button_scope();
Expand Down

0 comments on commit 30ca1f6

Please sign in to comment.