Skip to content

Commit e1375ef

Browse files
committed
Use to_string_lossy
1 parent 0aeaccc commit e1375ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fn main() {
145145
.collect::<Vec<_>>();
146146

147147
for exercise in &exercises {
148-
let fname = format!("{}", exercise.path.display());
148+
let fname = exercise.path.to_string_lossy();
149149
let filter_cond = filters
150150
.iter()
151151
.any(|f| exercise.name.contains(f) || fname.contains(f));

0 commit comments

Comments
 (0)