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
+6 -2
View File
@@ -417,7 +417,7 @@ impl RepetitionsState {
for (date, activity) in history {
let distance = now - *date;
let index = counts.len() as i64 - distance.num_days() - 1;
if index < 0 {
continue;
}
@@ -577,7 +577,11 @@ impl RepetitionsState {
.cloned();
Self::append_words(state, deck, required);
}
fn append_words(state: &mut AppState, deck: &DeckSettings, indices: impl Iterator<Item = usize>) {
fn append_words(
state: &mut AppState,
deck: &DeckSettings,
indices: impl Iterator<Item = usize>,
) {
let words = &state.dictionary;
let stats = &mut indices
.map(|i| {