mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: Fix let_and_return warnings (#31964)
This commit is contained in:
parent
0da2508e4d
commit
c7b73e1ef4
8 changed files with 17 additions and 31 deletions
|
@ -2771,7 +2771,7 @@ impl GlobalScope {
|
|||
return p;
|
||||
}
|
||||
|
||||
let promise = match image {
|
||||
match image {
|
||||
ImageBitmapSource::HTMLCanvasElement(ref canvas) => {
|
||||
// https://html.spec.whatwg.org/multipage/#check-the-usability-of-the-image-argument
|
||||
if !canvas.is_valid() {
|
||||
|
@ -2815,8 +2815,7 @@ impl GlobalScope {
|
|||
p.reject_error(Error::NotSupported);
|
||||
return p;
|
||||
},
|
||||
};
|
||||
promise
|
||||
}
|
||||
}
|
||||
|
||||
pub fn fire_timer(&self, handle: TimerEventId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue