mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Fix some rust-clippy violations
This commit is contained in:
parent
1dfc0481ef
commit
16fa9cabc9
11 changed files with 37 additions and 42 deletions
|
@ -562,8 +562,8 @@ impl VirtualMethods for HTMLScriptElement {
|
|||
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
self.super_type().unwrap().attribute_mutated(attr, mutation);
|
||||
match attr.local_name() {
|
||||
&atom!("src") => {
|
||||
match *attr.local_name() {
|
||||
atom!("src") => {
|
||||
if let AttributeMutation::Set(_) = mutation {
|
||||
if !self.parser_inserted.get() && self.upcast::<Node>().is_in_doc() {
|
||||
self.prepare();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue