From 2adc9b8dc957d6b6b4763e84386f61057b0334a2 Mon Sep 17 00:00:00 2001 From: Ben S Date: Fri, 20 Jun 2014 21:40:31 +0100 Subject: [PATCH] Actually display is better used here --- dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dir.rs b/dir.rs index b4c7463..525d55a 100644 --- a/dir.rs +++ b/dir.rs @@ -27,7 +27,7 @@ impl<'a> Dir<'a> { files.push(file); } Err(e) => { - println!("{}: {}", path.filename_str().unwrap(), e); + println!("{}: {}", path.display(), e); } } }