Skip to content

Commit

Permalink
Remobve unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokoch committed May 30, 2018
1 parent 9b6940d commit c5ee3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/fs.rs
Expand Up @@ -796,7 +796,7 @@ pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {

#[cfg(not(any(target_os = "linux", target_os = "android")))]
pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
use fs::{File, set_permissions};
use fs::File;
if !from.is_file() {
return Err(Error::new(ErrorKind::InvalidInput,
"the source path is not an existing regular file"))
Expand Down

0 comments on commit c5ee3b6

Please sign in to comment.