mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
Use to_string_lossy
This commit is contained in:
parent
0aeaccc3a5
commit
e1375ef431
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ fn main() {
|
|||
.collect::<Vec<_>>();
|
||||
|
||||
for exercise in &exercises {
|
||||
let fname = format!("{}", exercise.path.display());
|
||||
let fname = exercise.path.to_string_lossy();
|
||||
let filter_cond = filters
|
||||
.iter()
|
||||
.any(|f| exercise.name.contains(f) || fname.contains(f));
|
||||
|
|
Loading…
Reference in a new issue