Formating with fmt

This commit is contained in:
2026-08-19 23:51:41 +03:00
parent de2dbaf6c1
commit bf805b79e5
13 changed files with 44 additions and 42 deletions
+4 -3
View File
@@ -1,5 +1,5 @@
use crate::lang::{CardStatistics, DeckSettings};
use rusqlite::{params, Connection};
use rusqlite::{Connection, params};
use std::time::Instant;
pub fn load_stats_of_deck(set: &DeckSettings, connection: &Connection) -> Vec<CardStatistics> {
@@ -45,7 +45,7 @@ pub fn add_stat_list(stats: &mut [CardStatistics], connection: &mut Connection)
stat.score,
stat.last_open.timestamp()
])
.unwrap();
.unwrap();
}
}
@@ -78,5 +78,6 @@ pub fn delete_stat(stat: &CardStatistics, connection: &Connection) {
return;
}
connection
.execute("DELETE FROM card_stats WHERE id = ?1", (&stat.id,)).unwrap();
.execute("DELETE FROM card_stats WHERE id = ?1", (&stat.id,))
.unwrap();
}