Use to_string_lossy

This commit is contained in:
mo8it 2024-03-24 18:47:27 +01:00
parent 0aeaccc3a5
commit e1375ef431

View file

@ -145,7 +145,7 @@ fn main() {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
for exercise in &exercises { for exercise in &exercises {
let fname = format!("{}", exercise.path.display()); let fname = exercise.path.to_string_lossy();
let filter_cond = filters let filter_cond = filters
.iter() .iter()
.any(|f| exercise.name.contains(f) || fname.contains(f)); .any(|f| exercise.name.contains(f) || fname.contains(f));