diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-25 12:06:06 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-29 12:24:49 +0200 |
commit | 16f6a1a65d4b973ea13cd00bbfdd7e225041e447 (patch) | |
tree | fbc2eee487856a18c717439a4b418c123fc90c68 /src/api/s3/put.rs | |
parent | ad35b18bb146fcbf5e817c10837c6e835b1af5b7 (diff) | |
download | garage-16f6a1a65d4b973ea13cd00bbfdd7e225041e447.tar.gz garage-16f6a1a65d4b973ea13cd00bbfdd7e225041e447.zip |
fix clippy
Diffstat (limited to 'src/api/s3/put.rs')
-rw-r--r-- | src/api/s3/put.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/api/s3/put.rs b/src/api/s3/put.rs index e6698bfa..dc0530df 100644 --- a/src/api/s3/put.rs +++ b/src/api/s3/put.rs @@ -434,12 +434,7 @@ impl<S: Stream<Item = Result<Bytes, Error>> + Unpin> StreamChunker<S> { } } Ok(Some( - slices - .iter() - .map(|x| &x[..]) - .collect::<Vec<_>>() - .concat() - .into(), + slices.iter().map(|x| &x[..]).collect::<Vec<_>>().concat(), )) } } |