Rewrite words and groups into result

This commit is contained in:
micialware committed 2026-08-24 18:46:54 +03:00
1 parent c56d135ce8
commit 5a6747030b
7 files changed
+99 -70

No files matched your search

+1 -3
View File
@@ -25,9 +25,7 @@ pub fn load_stats_of_deck(
.map_err(|_| DbLoadError)?;
let mut buffer = Vec::with_capacity(512);
for word in iter.filter_map(|result| result.ok()) {
buffer.push(word);
}
iter.filter_map(|res| res.ok()).for_each(|i| buffer.push(i));
Ok(buffer)
}