mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix warnings in components/script
& components/script/dom
(#33821)
* clippy: Fix warnings in components/script & components/script/dom Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Remove unused variable - can_gc Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Use _can_gc instead of removing it Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
a55f9a37ec
commit
5c0a0d29d0
2 changed files with 2 additions and 1 deletions
|
@ -1252,6 +1252,7 @@ impl CanvasState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-getimagedata
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-getimagedata
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn get_image_data(
|
pub fn get_image_data(
|
||||||
&self,
|
&self,
|
||||||
canvas_size: Size2D<u64>,
|
canvas_size: Size2D<u64>,
|
||||||
|
|
|
@ -5306,7 +5306,7 @@ impl DocumentMethods for Document {
|
||||||
url: USVString,
|
url: USVString,
|
||||||
target: DOMString,
|
target: DOMString,
|
||||||
features: DOMString,
|
features: DOMString,
|
||||||
can_gc: CanGc,
|
_can_gc: CanGc,
|
||||||
) -> Fallible<Option<DomRoot<WindowProxy>>> {
|
) -> Fallible<Option<DomRoot<WindowProxy>>> {
|
||||||
self.browsing_context()
|
self.browsing_context()
|
||||||
.ok_or(Error::InvalidAccess)?
|
.ok_or(Error::InvalidAccess)?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue