mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Remove needless mutabilities from script crate.
This commit is contained in:
parent
7fcade294c
commit
975fee82da
9 changed files with 19 additions and 19 deletions
|
@ -76,7 +76,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
|
|||
let win = self.owner.root();
|
||||
|
||||
// Step 1.
|
||||
let mut doc = Document::new(&win.root_ref(), None, NonHTMLDocument, None).root();
|
||||
let doc = Document::new(&win.root_ref(), None, NonHTMLDocument, None).root();
|
||||
// Step 2-3.
|
||||
let maybe_elem = if qname.is_empty() {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue