markov: shut up clippy
This commit is contained in:
parent
3651624861
commit
d1af86078e
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue