mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add lint check for &DomRoot<T>
`&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
This commit is contained in:
parent
bac9903fbe
commit
cd9195056c
9 changed files with 13 additions and 13 deletions
|
@ -125,7 +125,7 @@ impl Serializable for Blob {
|
|||
|
||||
/// <https://w3c.github.io/FileAPI/#ref-for-deserialization-steps>
|
||||
fn deserialize(
|
||||
owner: &DomRoot<GlobalScope>,
|
||||
owner: &GlobalScope,
|
||||
sc_holder: &mut StructuredDataHolder,
|
||||
storage_key: StorageKey,
|
||||
) -> Result<(), ()> {
|
||||
|
@ -159,7 +159,7 @@ impl Serializable for Blob {
|
|||
*blob_impls = None;
|
||||
}
|
||||
|
||||
let deserialized_blob = Blob::new(&**owner, blob_impl);
|
||||
let deserialized_blob = Blob::new(&*owner, blob_impl);
|
||||
|
||||
let blobs = blobs.get_or_insert_with(|| HashMap::new());
|
||||
blobs.insert(storage_key, deserialized_blob);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue