mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 23:32:39 +00:00
mv: use is_empty()
This commit is contained in:
parent
b24f91c4d6
commit
0d56792c58
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ fn move_files_into_dir(files: &[PathBuf], target_dir: &Path, b: &Behavior) -> UR
|
||||||
}
|
}
|
||||||
|
|
||||||
match rename(sourcepath, &targetpath, b, multi_progress.as_ref()) {
|
match rename(sourcepath, &targetpath, b, multi_progress.as_ref()) {
|
||||||
Err(e) if e.to_string() == "" => set_exit_code(1),
|
Err(e) if e.to_string().is_empty() => set_exit_code(1),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let e = e.map_err_context(|| {
|
let e = e.map_err_context(|| {
|
||||||
format!(
|
format!(
|
||||||
|
|
Loading…
Reference in a new issue