diff options
author | Joris | 2023-11-25 08:59:39 +0100 |
---|---|---|
committer | Joris | 2023-11-25 08:59:39 +0100 |
commit | bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5 (patch) | |
tree | cf98c0d9466e0338992c94060d09ac90862178c5 /src/controller/statistics.rs | |
parent | 936871e6ba92a23b1956b30272af8c96951c7c2d (diff) |
Upgrade dependencies
Diffstat (limited to 'src/controller/statistics.rs')
-rw-r--r-- | src/controller/statistics.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controller/statistics.rs b/src/controller/statistics.rs index 38a5787..eb1e704 100644 --- a/src/controller/statistics.rs +++ b/src/controller/statistics.rs @@ -1,4 +1,6 @@ -use hyper::{Body, Response}; +use http_body_util::Full; +use hyper::body::Bytes; +use hyper::Response; use tera::Context; use crate::controller::utils; @@ -6,7 +8,7 @@ use crate::controller::wallet::Wallet; use crate::db; use crate::templates; -pub async fn get(wallet: &Wallet) -> Response<Body> { +pub async fn get(wallet: &Wallet) -> Response<Full<Bytes>> { let categories = db::categories::list(&wallet.pool).await; let payments = db::payments::list_for_stats(&wallet.pool).await; let incomes = db::incomes::total_each_month(&wallet.pool).await; |