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

@ -56,7 +56,7 @@ enum StructuredCloneTags {
}
unsafe fn read_blob(
owner: &DomRoot<GlobalScope>,
owner: &GlobalScope,
r: *mut JSStructuredCloneReader,
mut sc_holder: &mut StructuredDataHolder,
) -> *mut JSObject {
@ -88,7 +88,7 @@ unsafe fn read_blob(
}
unsafe fn write_blob(
owner: &DomRoot<GlobalScope>,
owner: &GlobalScope,
blob: DomRoot<Blob>,
w: *mut JSStructuredCloneWriter,
sc_holder: &mut StructuredDataHolder,