From 0d06fb3a31ad9a057d1d8431a92ca0059629f760 Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Sun, 25 Apr 2021 23:37:21 +0200 Subject: [PATCH] client: Fix one clippy warning --- client/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index e7cf3f8..2624843 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -97,7 +97,7 @@ impl Client { true } StatusCode::UNAUTHORIZED => false, - status_code => Err(Error::UnexpectedResponse(status_code))?, + status_code => return Err(Error::UnexpectedResponse(status_code)), }; Ok(success)