diff options
author | Joris | 2023-04-17 21:10:48 +0200 |
---|---|---|
committer | Joris | 2023-04-17 21:10:48 +0200 |
commit | 459016e70dd4933a8082d27748097de81a3e53ff (patch) | |
tree | 0ed14ecc8762d62a55bf8c05356bcc984b1a0cea /src/routes.rs | |
parent | 3932daa26360d6e03807381d0b8ffa2d0e704847 (diff) |
Follow clippy indications
Diffstat (limited to 'src/routes.rs')
-rw-r--r-- | src/routes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/routes.rs b/src/routes.rs index 7369f98..b9e137e 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -1,6 +1,5 @@ use hyper::{Body, Method, Request, Response}; use serde::Deserialize; -use serde_urlencoded; use sqlx::sqlite::SqlitePool; use std::collections::HashMap; use std::convert::Infallible; @@ -73,7 +72,7 @@ async fn connected_user( let mut xs = cookie.split('='); xs.next(); let login_token = xs.next()?; - db::users::get_by_login_token(&pool, login_token.to_string()).await + db::users::get_by_login_token(pool, login_token.to_string()).await } async fn authenticated_routes( |