From 26a02489721cbf81a3e8c09c095aee5ff5786275 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sat, 18 Apr 2026 11:29:38 +0200 Subject: Format sources --- src/db/balancing.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/db') diff --git a/src/db/balancing.rs b/src/db/balancing.rs index 8914eef..379576b 100644 --- a/src/db/balancing.rs +++ b/src/db/balancing.rs @@ -1,7 +1,7 @@ use tokio_rusqlite::{Connection, Row, named_params}; use crate::db::utils; -use crate::model::balancing::{Balancing, Create, Update, TableRow}; +use crate::model::balancing::{Balancing, Create, TableRow, Update}; fn row_to_balancing(row: &Row) -> Result { Ok(Balancing { @@ -36,7 +36,11 @@ pub async fn count(conn: &Connection) -> i64 { } } -pub async fn list_for_table(conn: &Connection, page: i64, per_page: i64) -> Vec { +pub async fn list_for_table( + conn: &Connection, + page: i64, + per_page: i64, +) -> Vec { let query = r#" SELECT balancing.id, -- cgit v1.2.3