From 33dfcd18252dd8a4845cd58b93bd177ab0dffde9 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sun, 1 Jan 2023 20:47:59 -0500 Subject: Fix clippy warnings --- server/src/auth.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server/src/auth.rs') diff --git a/server/src/auth.rs b/server/src/auth.rs index 76b16cf..173a2b3 100644 --- a/server/src/auth.rs +++ b/server/src/auth.rs @@ -96,6 +96,12 @@ impl SessionId { } } +impl Default for SessionId { + fn default() -> Self { + Self::new() + } +} + impl ToString for SessionId { fn to_string(&self) -> String { self.0.to_string() @@ -116,7 +122,7 @@ fn token_safe_time() -> chrono::Duration { chrono::Duration::seconds(30) } -pub const LOGIN_CALLBACK: &'static str = "/api/login_callback"; +pub const LOGIN_CALLBACK: &str = "/api/login_callback"; fn redirect_url(app_url: &str) -> RedirectUrl { RedirectUrl::new(format!("{}{}", app_url, LOGIN_CALLBACK)).unwrap() } -- cgit v1.2.3