Sfoglia il codice sorgente

Actually display is better used here

Ben S 11 anni fa
parent
commit
2adc9b8dc9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      dir.rs

+ 1 - 1
dir.rs

@@ -27,7 +27,7 @@ impl<'a> Dir<'a> {
                     files.push(file);
                     files.push(file);
                 }
                 }
                 Err(e) => {
                 Err(e) => {
-                    println!("{}: {}", path.filename_str().unwrap(), e);
+                    println!("{}: {}", path.display(), e);
                 }
                 }
             }
             }
         }
         }