mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-08-08 22:36:55 +02:00
Use to_string_lossy
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user