From 4424a6df96d1ffc00578f3845c0c1642551cff6e Mon Sep 17 00:00:00 2001 From: Ben S Date: Thu, 3 Sep 2015 10:51:59 +0100 Subject: [PATCH] Rename readdir -> read_dir --- src/dir.rs | 2 +- src/file.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dir.rs b/src/dir.rs index d7adb09..4126656 100644 --- a/src/dir.rs +++ b/src/dir.rs @@ -25,7 +25,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 readdir(path: &Path, git: bool) -> io::Result { + pub fn read_dir(path: &Path, git: bool) -> io::Result { let reader = try!(fs::read_dir(path)); let contents = try!(reader.map(|e| e.map(|e| e.path())).collect()); diff --git a/src/file.rs b/src/file.rs index 89c8a13..e64333f 100644 --- a/src/file.rs +++ b/src/file.rs @@ -84,7 +84,7 @@ impl<'dir> File<'dir> { } pub fn to_dir(&self, scan_for_git: bool) -> io::Result { - Dir::readdir(&*self.path, scan_for_git) + Dir::read_dir(&*self.path, scan_for_git) } /// Whether this file is a regular file on the filesystem - that is, not a -- GitLab