Sfoglia il codice sorgente

Slim down symlink arrow

Fixes #74. There's one argument for changing the arrow, and none against!
Ben S 10 anni fa
parent
commit
ebbac61c74
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/output/mod.rs

+ 2 - 2
src/output/mod.rs

@@ -28,13 +28,13 @@ fn symlink_filename(file: &File, colours: &Colours) -> String {
     match file.link_target() {
         Ok(target) => format!("{} {} {}",
                               file_colour(colours, file).paint(&file.name),
-                              colours.punctuation.paint("=>"),
+                              colours.punctuation.paint("->"),
                               ANSIStrings(&[ colours.symlink_path.paint(&target.path_prefix()),
                                              file_colour(colours, &target).paint(&target.name) ])),
 
         Err(filename) => format!("{} {} {}",
                                  file_colour(colours, file).paint(&file.name),
-                                 colours.broken_arrow.paint("=>"),
+                                 colours.broken_arrow.paint("->"),
                                  colours.broken_filename.paint(&filename)),
     }
 }