aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/globalscope.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/globalscope.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/globalscope.rs')
-rw-r--r--components/script/dom/globalscope.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs
index f0748433e64..f6937427eda 100644
--- a/components/script/dom/globalscope.rs
+++ b/components/script/dom/globalscope.rs
@@ -892,7 +892,7 @@ impl GlobalScope {
}
/// Start tracking a blob
- pub fn track_blob(&self, dom_blob: &DomRoot<Blob>, blob_impl: BlobImpl) {
+ pub fn track_blob(&self, dom_blob: &Blob, blob_impl: BlobImpl) {
let blob_id = blob_impl.blob_id();
let blob_info = BlobInfo {
@@ -905,7 +905,7 @@ impl GlobalScope {
}
/// Start tracking a file
- pub fn track_file(&self, file: &DomRoot<File>, blob_impl: BlobImpl) {
+ pub fn track_file(&self, file: &File, blob_impl: BlobImpl) {
let blob_id = blob_impl.blob_id();
let blob_info = BlobInfo {