diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-05-25 16:12:57 +0300 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-07-20 20:37:00 +0300 |
commit | e09ce1cc517b4e82e3c6a53f46c9f79368322fc9 (patch) | |
tree | ba2a80ddbfe8a90ab45d4e735a7953b4420052bb /src/unix.rs | |
parent | 4235b6357cd14ff172508d579ff11ce8acab0066 (diff) |
internals: re-arrange implementation
This moves the DirEntry and Error types out into their own separate
modules.
This is prep work to (hopefully) make the impending refactoring (or
more likely, rewrite) more palatable.
Diffstat (limited to 'src/unix.rs')
-rw-r--r-- | src/unix.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/unix.rs b/src/unix.rs deleted file mode 100644 index fb1842c..0000000 --- a/src/unix.rs +++ /dev/null @@ -1,16 +0,0 @@ -use DirEntry; - -/// Unix-specific extension methods for `walkdir::DirEntry` -pub trait DirEntryExt { - /// Returns the underlying `d_ino` field in the contained `dirent` - /// structure. - fn ino(&self) -> u64; -} - -impl DirEntryExt for DirEntry { - /// Returns the underlying `d_ino` field in the contained `dirent` - /// structure. - fn ino(&self) -> u64 { - self.ino - } -} |