aboutsummaryrefslogtreecommitdiff
path: root/src/api/notifications.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/notifications.rs')
-rw-r--r--src/api/notifications.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/notifications.rs b/src/api/notifications.rs
index 3df91e91..5bcc59b5 100644
--- a/src/api/notifications.rs
+++ b/src/api/notifications.rs
@@ -124,7 +124,9 @@ fn websockets_hub<'r>(
err_code!("Invalid claim", 401)
};
- let Ok(claims) = crate::auth::decode_login(&token) else { err_code!("Invalid token", 401) };
+ let Ok(claims) = crate::auth::decode_login(&token) else {
+ err_code!("Invalid token", 401)
+ };
let (mut rx, guard) = {
let users = Arc::clone(&WS_USERS);