summaryrefslogtreecommitdiffstats
path: root/src/dir.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dir.rs')
-rw-r--r--src/dir.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dir.rs b/src/dir.rs
index 78e0ed6..7453745 100644
--- a/src/dir.rs
+++ b/src/dir.rs
@@ -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());