Remove re-export of is_same_file

Added a wrapper around this function that is deprecated.
Fixes #43.
This commit is contained in:
Jérémie Lawson 2017-06-22 21:13:39 +02:00 committed by Andrew Gallant
parent 378cb0742e
commit f4de7b969a

View File

@ -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;