mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fixes dereferencing on an immutable reference (#31864)
This commit is contained in:
parent
585e0d69cd
commit
f7669b5238
32 changed files with 76 additions and 77 deletions
|
@ -124,7 +124,7 @@ impl FormDataMethods for FormData {
|
|||
FormDatumValue::String(ref s) => {
|
||||
FileOrUSVString::USVString(USVString(s.to_string()))
|
||||
},
|
||||
FormDatumValue::File(ref b) => FileOrUSVString::File(DomRoot::from_ref(&*b)),
|
||||
FormDatumValue::File(ref b) => FileOrUSVString::File(DomRoot::from_ref(b)),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ impl FormDataMethods for FormData {
|
|||
FormDatumValue::String(ref s) => {
|
||||
FileOrUSVString::USVString(USVString(s.to_string()))
|
||||
},
|
||||
FormDatumValue::File(ref b) => FileOrUSVString::File(DomRoot::from_ref(&*b)),
|
||||
FormDatumValue::File(ref b) => FileOrUSVString::File(DomRoot::from_ref(b)),
|
||||
})
|
||||
})
|
||||
.collect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue