markov: shut up clippy

This commit is contained in:
raf 2025-05-02 07:22:22 +03:00
commit d1af86078e
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -103,7 +103,7 @@ impl MarkovGenerator {
let path = Path::new(corpus_dir);
if path.exists() && path.is_dir() {
if let Ok(entries) = fs::read_dir(path) {
for entry in entries {
entries.for_each(|entry| {
if let Ok(entry) = entry {
let file_path = entry.path();
if let Some(file_name) = file_path.file_stem() {
@ -120,7 +120,7 @@ impl MarkovGenerator {
}
}
}
}
});
}
}