aboutsummaryrefslogtreecommitdiff
path: root/src/controller/balance.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/balance.rs')
-rw-r--r--src/controller/balance.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller/balance.rs b/src/controller/balance.rs
index 6cb937b..9398dae 100644
--- a/src/controller/balance.rs
+++ b/src/controller/balance.rs
@@ -6,8 +6,8 @@ use std::collections::HashMap;
use crate::controller::utils;
use crate::controller::wallet::Wallet;
use crate::db;
-use crate::model::user::User;
use crate::model::balancing::Balancing;
+use crate::model::user::User;
use crate::payer;
use crate::templates;
@@ -25,7 +25,7 @@ pub async fn get(wallet: &Wallet) -> Response<Full<Bytes>> {
let user_payments = with_balancing(
db::payments::repartition(&wallet.db_conn).await,
- db::balancing::list(&wallet.db_conn).await
+ db::balancing::list(&wallet.db_conn).await,
);
let template_user_payments =
get_template_user_payments(&users, &user_payments);
@@ -74,7 +74,7 @@ fn get_template_user_incomes(
fn with_balancing(
user_payments: HashMap<i64, i64>,
- balancings: Vec<Balancing>
+ balancings: Vec<Balancing>,
) -> HashMap<i64, i64> {
let mut user_payments = user_payments;
for balancing in balancings {