Formating with fmt
This commit is contained in:
+6
-2
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user