Fix some new clippy lints

This commit is contained in:
Alex Auvolat
2022-03-14 12:00:23 +01:00
parent 0af314b295
commit ba6b56ae68
14 changed files with 22 additions and 37 deletions
+1 -2
View File
@@ -175,8 +175,7 @@ async fn serve_file(garage: Arc<Garage>, req: &Request<Body>) -> Result<Response
.bucket_alias_table
.get(&EmptyKey, &bucket_name.to_string())
.await?
.map(|x| x.state.take())
.flatten()
.and_then(|x| x.state.take())
.ok_or(Error::NotFound)?;
// Check bucket isn't deleted and has website access enabled