diff options
Diffstat (limited to 'src/output/mod.rs')
-rw-r--r-- | src/output/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/output/mod.rs b/src/output/mod.rs index 4205852..5a3fb31 100644 --- a/src/output/mod.rs +++ b/src/output/mod.rs @@ -20,21 +20,21 @@ pub fn filename(file: &File, colours: &Colours, links: bool) -> String { } else { let style = file_colour(colours, file); - style.paint(&file.name).to_string() + style.paint(&*file.name).to_string() } } fn symlink_filename(file: &File, colours: &Colours) -> String { match file.link_target() { Ok(target) => format!("{} {} {}", - file_colour(colours, file).paint(&file.name), + file_colour(colours, file).paint(&*file.name), colours.punctuation.paint("->"), - ANSIStrings(&[ colours.symlink_path.paint(&target.path_prefix()), - file_colour(colours, &target).paint(&target.name) ])), + 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), + file_colour(colours, file).paint(&*file.name), colours.broken_arrow.paint("->"), - colours.broken_filename.paint(&filename)), + colours.broken_filename.paint(filename)), } } |