diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
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> { |