mirror of
https://github.com/BurntSushi/walkdir.git
synced 2025-09-27 21:50:35 +00:00
Remove re-export of is_same_file
Added a wrapper around this function that is deprecated. Fixes #43.
This commit is contained in:
parent
378cb0742e
commit
f4de7b969a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user