mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix unneeded return statement warnings (#31776)
This commit is contained in:
parent
d63615354c
commit
15bf32a4e6
19 changed files with 31 additions and 38 deletions
|
@ -171,7 +171,7 @@ impl OffscreenCanvasMethods for OffscreenCanvas {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-width
|
||||
fn Width(&self) -> u64 {
|
||||
return self.width.get();
|
||||
self.width.get()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-width
|
||||
|
@ -189,7 +189,7 @@ impl OffscreenCanvasMethods for OffscreenCanvas {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-height
|
||||
fn Height(&self) -> u64 {
|
||||
return self.height.get();
|
||||
self.height.get()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue