aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorlberrymage <mageelog@gmail.com>2019-12-21 12:44:34 -0900
committerlberrymage <mageelog@gmail.com>2019-12-21 12:44:35 -0900
commitcd9195056c7a83b44ed439ef607b94ed4824431d (patch)
tree3d60bc161b9553746290dfe6e785fda02143b131 /components/script/dom/blob.rs
parentbac9903fbeed0a394a86c0091e727aada665433d (diff)
downloadservo-cd9195056c7a83b44ed439ef607b94ed4824431d.tar.gz
servo-cd9195056c7a83b44ed439ef607b94ed4824431d.zip
Add lint check for `&DomRoot<T>`
`&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index 2018a12ae88..86f967764c1 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -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);