aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-25 12:06:06 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-29 12:24:49 +0200
commit16f6a1a65d4b973ea13cd00bbfdd7e225041e447 (patch)
treefbc2eee487856a18c717439a4b418c123fc90c68
parentad35b18bb146fcbf5e817c10837c6e835b1af5b7 (diff)
downloadgarage-16f6a1a65d4b973ea13cd00bbfdd7e225041e447.tar.gz
garage-16f6a1a65d4b973ea13cd00bbfdd7e225041e447.zip
fix clippy
-rw-r--r--src/api/s3/put.rs7
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(),
))
}
}