We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b6940d commit c5ee3b6Copy full SHA for c5ee3b6
src/libstd/sys/unix/fs.rs
@@ -796,7 +796,7 @@ pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {
796
797
#[cfg(not(any(target_os = "linux", target_os = "android")))]
798
pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
799
- use fs::{File, set_permissions};
+ use fs::File;
800
if !from.is_file() {
801
return Err(Error::new(ErrorKind::InvalidInput,
802
"the source path is not an existing regular file"))
0 commit comments