mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue