Add lint check for &DomRoot<T>

`&DomRoot<T> is strictly less expressive than `&T`, so using it is
pointless.
This commit is contained in:
lberrymage 2019-12-21 12:44:34 -09:00
parent bac9903fbe
commit cd9195056c
9 changed files with 13 additions and 13 deletions

View file

@ -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 {