mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -751,10 +751,7 @@ fn consume_body_with_promise<T: BodyMixin + DomObject>(
|
|||
// Step 2.
|
||||
let stream = match object.body() {
|
||||
Some(stream) => stream,
|
||||
None => {
|
||||
let stream = ReadableStream::new_from_bytes(&global, Vec::with_capacity(0));
|
||||
stream
|
||||
},
|
||||
None => ReadableStream::new_from_bytes(&global, Vec::with_capacity(0)),
|
||||
};
|
||||
|
||||
// Step 3.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue