diff options
author | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:00:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:27:49 +0100 |
commit | ba6b56ae68d5842d814769418d484093865261aa (patch) | |
tree | 2620aadaa46718680ba6e66946ca487839335f56 /src/web | |
parent | 0af314b295f70fdf107524b08063f4d36fb4eeb6 (diff) | |
download | garage-fix-resync.tar.gz garage-fix-resync.zip |
Fix some new clippy lintsfix-resync
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/web_server.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs index c51347a3..c3d691d0 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -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 |