diff options
author | Jérémie Lawson <jeremielate@gmail.com> | 2017-06-22 22:13:39 +0300 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-07-15 20:09:58 +0300 |
commit | f4de7b969ad46f32f92d15790909771dbbd1163e (patch) | |
tree | 7c83e3593405ed964c81e3ec06bf4c77a7f0322e | |
parent | 378cb0742ea9f67c7de97dee56372d684100e40a (diff) |
Remove re-export of is_same_file
Added a wrapper around this function that is deprecated.
Fixes #43.
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |