mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01: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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue