aboutsummaryrefslogtreecommitdiff
path: root/src/controller/balance.rs
diff options
context:
space:
mode:
authorJoris2023-11-25 08:59:39 +0100
committerJoris2023-11-25 08:59:39 +0100
commitbb906d8ecc796f6b71dda1851d6bd0aa91c6bce5 (patch)
treecf98c0d9466e0338992c94060d09ac90862178c5 /src/controller/balance.rs
parent936871e6ba92a23b1956b30272af8c96951c7c2d (diff)
downloadbudget-bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5.tar.gz
budget-bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5.tar.bz2
budget-bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5.zip
Upgrade dependenciesmain
Diffstat (limited to 'src/controller/balance.rs')
-rw-r--r--src/controller/balance.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controller/balance.rs b/src/controller/balance.rs
index adde8a9..c5d9d4a 100644
--- a/src/controller/balance.rs
+++ b/src/controller/balance.rs
@@ -1,4 +1,6 @@
-use hyper::{Body, Response};
+use http_body_util::Full;
+use hyper::body::Bytes;
+use hyper::Response;
use std::collections::HashMap;
use tera::Context;
@@ -9,7 +11,7 @@ use crate::model::user::User;
use crate::payer;
use crate::templates;
-pub async fn get(wallet: &Wallet) -> Response<Body> {
+pub async fn get(wallet: &Wallet) -> Response<Full<Bytes>> {
let users = db::users::list(&wallet.pool).await;
let incomes_from = db::incomes::defined_for_all(&wallet.pool).await;