Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Lawson <jeremielate@gmail.com>2017-06-22 22:13:39 +0300
committerAndrew Gallant <jamslam@gmail.com>2017-07-15 20:09:58 +0300
commitf4de7b969ad46f32f92d15790909771dbbd1163e (patch)
tree7c83e3593405ed964c81e3ec06bf4c77a7f0322e
parent378cb0742ea9f67c7de97dee56372d684100e40a (diff)
Remove re-export of is_same_file
Added a wrapper around this function that is deprecated. Fixes #43.
-rw-r--r--src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3d91a77..dad0414 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -122,7 +122,12 @@ use std::path::{Path, PathBuf};
use std::result;
use std::vec;
-pub use same_file::is_same_file;
+#[deprecated(since="1.0.7", note="please use `is_same_file` from `same_file` crate instead.")]
+pub fn is_same_file<P, Q>( path1: P, path2: Q)
+ -> io::Result<bool> where P: AsRef<Path>, Q: AsRef<Path> {
+ use same_file::is_same_file;
+ is_same_file(path1, path2)
+}
#[cfg(test)] mod tests;