diff options
| author | Joris Guyonvarch | 2026-04-17 23:43:24 +0200 |
|---|---|---|
| committer | Joris Guyonvarch | 2026-04-17 23:43:24 +0200 |
| commit | b35589eb90f2e5ee5521964e64eb578e9eb99032 (patch) | |
| tree | 7ccfc7e0ef37c8d30a017c302fdd2f70d4bc1db5 /src/controller | |
| parent | 648d073e1b8f4838f147c0520024bd453921a25c (diff) | |
Upgrade dependencies
Diffstat (limited to 'src/controller')
| -rw-r--r-- | src/controller/balance.rs | 2 | ||||
| -rw-r--r-- | src/controller/categories.rs | 2 | ||||
| -rw-r--r-- | src/controller/error.rs | 2 | ||||
| -rw-r--r-- | src/controller/incomes.rs | 2 | ||||
| -rw-r--r-- | src/controller/login.rs | 5 | ||||
| -rw-r--r-- | src/controller/payments.rs | 2 | ||||
| -rw-r--r-- | src/controller/statistics.rs | 2 | ||||
| -rw-r--r-- | src/controller/utils.rs | 2 |
8 files changed, 9 insertions, 10 deletions
diff --git a/src/controller/balance.rs b/src/controller/balance.rs index ae6d810..309f15c 100644 --- a/src/controller/balance.rs +++ b/src/controller/balance.rs @@ -1,6 +1,6 @@ use http_body_util::Full; -use hyper::body::Bytes; use hyper::Response; +use hyper::body::Bytes; use std::collections::HashMap; use crate::controller::utils; diff --git a/src/controller/categories.rs b/src/controller/categories.rs index 8772e38..bda2abc 100644 --- a/src/controller/categories.rs +++ b/src/controller/categories.rs @@ -1,6 +1,6 @@ use http_body_util::Full; -use hyper::body::Bytes; use hyper::Response; +use hyper::body::Bytes; use std::collections::HashMap; use crate::controller::utils; diff --git a/src/controller/error.rs b/src/controller/error.rs index fb1375c..dc04421 100644 --- a/src/controller/error.rs +++ b/src/controller/error.rs @@ -1,7 +1,7 @@ use http_body_util::Full; +use hyper::Response; use hyper::body::Bytes; use hyper::header::CACHE_CONTROL; -use hyper::Response; use std::collections::HashMap; use crate::controller::utils; diff --git a/src/controller/incomes.rs b/src/controller/incomes.rs index 09d483e..3c8f15d 100644 --- a/src/controller/incomes.rs +++ b/src/controller/incomes.rs @@ -1,8 +1,8 @@ use chrono::Datelike; use chrono::Utc; use http_body_util::Full; -use hyper::body::Bytes; use hyper::Response; +use hyper::body::Bytes; use std::collections::HashMap; use crate::controller::utils; diff --git a/src/controller/login.rs b/src/controller/login.rs index f7e0695..252fdf8 100644 --- a/src/controller/login.rs +++ b/src/controller/login.rs @@ -1,8 +1,8 @@ use bcrypt; use http_body_util::Full; +use hyper::Response; use hyper::body::Bytes; use hyper::header::SET_COOKIE; -use hyper::Response; use std::collections::HashMap; use tokio_rusqlite::Connection; @@ -44,8 +44,7 @@ pub async fn login( { Some(hash) => match bcrypt::verify(login.password, &hash) { Ok(true) => { - // TODO: error handling - let login_token = cookie::generate_token().unwrap(); + let login_token = cookie::generate_token(); if db::users::set_login_token( &db_conn, diff --git a/src/controller/payments.rs b/src/controller/payments.rs index 3fa85a5..554f61a 100644 --- a/src/controller/payments.rs +++ b/src/controller/payments.rs @@ -1,7 +1,7 @@ use http_body_util::Full; +use hyper::Response; use hyper::body::Bytes; use hyper::header::CONTENT_TYPE; -use hyper::Response; use std::collections::HashMap; use crate::controller::utils; diff --git a/src/controller/statistics.rs b/src/controller/statistics.rs index a546c67..5efbe73 100644 --- a/src/controller/statistics.rs +++ b/src/controller/statistics.rs @@ -1,6 +1,6 @@ use http_body_util::Full; -use hyper::body::Bytes; use hyper::Response; +use hyper::body::Bytes; use crate::controller::utils; use crate::controller::wallet::Wallet; diff --git a/src/controller/utils.rs b/src/controller/utils.rs index ccef33c..32eb1d0 100644 --- a/src/controller/utils.rs +++ b/src/controller/utils.rs @@ -1,7 +1,7 @@ use http_body_util::Full; use hyper::body::Bytes; use hyper::header::{ - HeaderName, HeaderValue, CACHE_CONTROL, CONTENT_TYPE, LOCATION, + CACHE_CONTROL, CONTENT_TYPE, HeaderName, HeaderValue, LOCATION, }; use hyper::{Response, StatusCode}; use std::collections::HashMap; |
