diff --git a/src/mv/Cargo.toml b/src/mv/Cargo.toml index de4f6eef9..87644c62b 100644 --- a/src/mv/Cargo.toml +++ b/src/mv/Cargo.toml @@ -9,10 +9,7 @@ path = "mv.rs" [dependencies] getopts = "*" - -[dependencies.uucore] -path = "../uucore" -default-features = false +uucore = { path="../uucore" } [[bin]] name = "mv" diff --git a/src/mv/mv.rs b/src/mv/mv.rs index 12fe9cfa3..312e48516 100644 --- a/src/mv/mv.rs +++ b/src/mv/mv.rs @@ -17,7 +17,6 @@ extern crate uucore; use std::fs; use std::env; use std::io::{BufRead, BufReader, Result, stdin, Write}; -use std::os::unix::fs::MetadataExt; use std::path::{Path, PathBuf}; static NAME: &'static str = "mv"; @@ -319,7 +318,7 @@ fn rename(from: &PathBuf, to: &PathBuf, b: &Behaviour) -> Result<()> { } if b.update { - if try!(fs::metadata(from)).mtime() <= try!(fs::metadata(to)).mtime() { + if try!(try!(fs::metadata(from)).modified()) <= try!(try!(fs::metadata(to)).modified()) { return Ok(()); } }