diff options
Diffstat (limited to 'src/dir.rs')
-rw-r--r-- | src/dir.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -use std::io; +use std::io::{self, Result as IOResult}; use std::fs; use std::path::{Path, PathBuf}; use std::slice::Iter as SliceIter; @@ -32,7 +32,7 @@ impl Dir { /// pointed to by the given path. Fails if the directory can't be read, or /// isn't actually a directory, or if there's an IO error that occurs /// while scanning. - pub fn read_dir(path: &Path, git: bool) -> io::Result<Dir> { + pub fn read_dir(path: &Path, git: bool) -> IOResult<Dir> { let reader = try!(fs::read_dir(path)); let contents = try!(reader.map(|e| e.map(|e| e.path())).collect()); |