diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-04-01 16:43:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 15:43:24 +0000 |
commit | c7b73e1ef4dc54ea74d63d3cec0cf7fe0fab218a (patch) | |
tree | 838a571398414c60b66063a6d0264aa35363ed74 /components/script/body.rs | |
parent | 0da2508e4d643e7a47ec3b83f9e97b06a3eb3bad (diff) | |
download | servo-c7b73e1ef4dc54ea74d63d3cec0cf7fe0fab218a.tar.gz servo-c7b73e1ef4dc54ea74d63d3cec0cf7fe0fab218a.zip |
clippy: Fix let_and_return warnings (#31964)
Diffstat (limited to 'components/script/body.rs')
-rw-r--r-- | components/script/body.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/body.rs b/components/script/body.rs index 36c6d3cc8b4..7971817747b 100644 --- a/components/script/body.rs +++ b/components/script/body.rs @@ -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. |