aboutsummaryrefslogtreecommitdiff
path: root/src/garage/admin_rpc.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-10-19 23:53:49 +0200
committerAlex Auvolat <alex@adnab.me>2021-10-19 23:53:49 +0200
commitf1a68f6b577af00f0989a46639345e4447b8f9dc (patch)
tree39f8c113a5dfe60906a786fe3759ced829b26806 /src/garage/admin_rpc.rs
parentd9c52e9a9c260ee2ec3350a253f6e6e8ae966b26 (diff)
downloadgarage-f1a68f6b577af00f0989a46639345e4447b8f9dc.tar.gz
garage-f1a68f6b577af00f0989a46639345e4447b8f9dc.zip
Fix clippy
Diffstat (limited to 'src/garage/admin_rpc.rs')
-rw-r--r--src/garage/admin_rpc.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/garage/admin_rpc.rs b/src/garage/admin_rpc.rs
index 339d5bdb..b5fc9a7e 100644
--- a/src/garage/admin_rpc.rs
+++ b/src/garage/admin_rpc.rs
@@ -349,11 +349,7 @@ impl AdminRpcHandler {
PRIO_NORMAL,
)
.await;
- let is_err = match resp {
- Ok(Ok(_)) => false,
- _ => true,
- };
- if is_err {
+ if !matches!(resp, Ok(Ok(_))) {
failures.push(node);
}
}