mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix some no_move errors
This commit is contained in:
parent
63714ebc5f
commit
dcb0a0eab6
17 changed files with 46 additions and 34 deletions
|
@ -223,7 +223,7 @@ impl<'a> HTMLScriptElementHelpers for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
// Step 13.
|
||||
if let Some(charset) = element.get_attribute(&ns!(""), &Atom::from_slice("charset")).root() {
|
||||
if let Some(ref charset) = element.get_attribute(&ns!(""), &Atom::from_slice("charset")).root() {
|
||||
if let Some(encodingRef) = encoding_from_whatwg_label(&charset.r().Value()) {
|
||||
*self.block_character_encoding.borrow_mut() = encodingRef;
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ impl<'a> HTMLScriptElementHelpers for JSRef<'a, HTMLScriptElement> {
|
|||
|
||||
let load = match element.get_attribute(&ns!(""), &atom!("src")).root() {
|
||||
// Step 14.
|
||||
Some(src) => {
|
||||
Some(ref src) => {
|
||||
// Step 14.1
|
||||
let src = src.r().Value();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue