From f496e41ef4298a579810046bcff794a24cdb7e07 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 15 Jan 2021 15:44:44 +0100 Subject: [PATCH] Replace an already done check by unreachable!() --- src/garage/admin_rpc.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/garage/admin_rpc.rs b/src/garage/admin_rpc.rs index 39dc0ed8..e1981e3a 100644 --- a/src/garage/admin_rpc.rs +++ b/src/garage/admin_rpc.rs @@ -175,9 +175,7 @@ impl AdminRpcHandler { Ok(AdminRPC::Ok(msg.to_string())) } else { - return Err(Error::Message(format!( - "Bucket is deleted in update_bucket_key" - ))); + unreachable!(); } } }