diff options
author | Richard Dushime <45734838+richarddushime@users.noreply.github.com> | 2024-03-19 19:05:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 16:05:56 +0000 |
commit | 01ca220f83f549d03da566f4becdf826819747ae (patch) | |
tree | 43e7fb2dda3e536ce7e0d0427739a2fd70b78deb /components/script/canvas_state.rs | |
parent | 676f655647fe261c9a9f005122cbbca0263a2625 (diff) | |
download | servo-01ca220f83f549d03da566f4becdf826819747ae.tar.gz servo-01ca220f83f549d03da566f4becdf826819747ae.zip |
clippy: Fix many warnings in `components/script` (#31717)
* Fix Several clippy warnings
* Fix Build errors
* Fix Unused import
* Fix requested changes
* Fix rustfmt
* Minor fixes
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/canvas_state.rs')
-rw-r--r-- | components/script/canvas_state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/canvas_state.rs b/components/script/canvas_state.rs index 03e1fcc7568..435daa5cded 100644 --- a/components/script/canvas_state.rs +++ b/components/script/canvas_state.rs @@ -370,7 +370,7 @@ impl CanvasState { return Err(Error::InvalidState); } - self.draw_html_canvas_element(&canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh) + self.draw_html_canvas_element(canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh) }, CanvasImageSource::OffscreenCanvas(ref canvas) => { // https://html.spec.whatwg.org/multipage/#check-the-usability-of-the-image-argument @@ -378,7 +378,7 @@ impl CanvasState { return Err(Error::InvalidState); } - self.draw_offscreen_canvas(&canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh) + self.draw_offscreen_canvas(canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh) }, CanvasImageSource::HTMLImageElement(ref image) => { // https://html.spec.whatwg.org/multipage/#drawing-images |