about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-04 23:12:59 +0300
committerVika <vika@fireburn.ru>2021-05-04 23:12:59 +0300
commit5b65175710a19daf43c81e52e180fd66ecfe4353 (patch)
tree40527b7b61a425926fb0b3a34ec782bda4b8d79d /src/lib.rs
parent1a78c48bd86ff72cc9c7020e69ec9a77302a2f8b (diff)
downloadkittybox-5b65175710a19daf43c81e52e180fd66ecfe4353.tar.zst
Clippy lints
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 219aec6..99d74b9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -57,7 +57,7 @@ where
             },
             Err(err) => match err.kind() {
                 database::ErrorKind::PermissionDenied => {
-                    if let Some(_) = query.user {
+                    if query.user.is_some() {
                         Ok(Response::builder(403).build())
                     } else {
                         Ok(Response::builder(401).build())
@@ -68,7 +68,7 @@ where
         }
     });
 
-    return app
+    app
 }
 
 pub async fn get_app_with_redis(token_endpoint: surf::Url, redis_uri: String, media_endpoint: Option<String>) -> App<database::RedisStorage> {