mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
changed match
to 'matches!' (#31850)
This commit is contained in:
parent
9a76dd9325
commit
bd39e03eeb
29 changed files with 185 additions and 229 deletions
|
@ -144,9 +144,9 @@ impl HTMLTableElement {
|
|||
|
||||
let section =
|
||||
HTMLTableSectionElement::new(atom.clone(), None, &document_from_node(self), None);
|
||||
match atom {
|
||||
&local_name!("thead") => self.SetTHead(Some(§ion)),
|
||||
&local_name!("tfoot") => self.SetTFoot(Some(§ion)),
|
||||
match *atom {
|
||||
local_name!("thead") => self.SetTHead(Some(§ion)),
|
||||
local_name!("tfoot") => self.SetTFoot(Some(§ion)),
|
||||
_ => unreachable!("unexpected section type"),
|
||||
}
|
||||
.expect("unexpected section type");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue