diff options
author | Azhar Ismagulova <31756707+azharcodeit@users.noreply.github.com> | 2024-03-29 08:58:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 08:58:22 +0000 |
commit | c4739675d8bf83a83d8e26d5d7527180f003e7d5 (patch) | |
tree | ce5d2642396eb98dc495078ffac97477916bf1e7 /components/script/dom/htmlscriptelement.rs | |
parent | 2d5a1cd02ee0c3196875dc52ca55a150a63cc29f (diff) | |
download | servo-c4739675d8bf83a83d8e26d5d7527180f003e7d5.tar.gz servo-c4739675d8bf83a83d8e26d5d7527180f003e7d5.zip |
clippy: Fix needless_borrow warnings in components/script (#31928)
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r-- | components/script/dom/htmlscriptelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs index 4211a530c9e..2c3faa899bd 100644 --- a/components/script/dom/htmlscriptelement.rs +++ b/components/script/dom/htmlscriptelement.rs @@ -1254,7 +1254,7 @@ impl VirtualMethods for HTMLScriptElement { } fn children_changed(&self, mutation: &ChildrenMutation) { - if let Some(ref s) = self.super_type() { + if let Some(s) = self.super_type() { s.children_changed(mutation); } if !self.parser_inserted.get() && self.upcast::<Node>().is_connected() { @@ -1263,7 +1263,7 @@ impl VirtualMethods for HTMLScriptElement { } fn bind_to_tree(&self, context: &BindContext) { - if let Some(ref s) = self.super_type() { + if let Some(s) = self.super_type() { s.bind_to_tree(context); } @@ -1281,7 +1281,7 @@ impl VirtualMethods for HTMLScriptElement { maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, ) { - if let Some(ref s) = self.super_type() { + if let Some(s) = self.super_type() { s.cloning_steps(copy, maybe_doc, clone_children); } |