diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index 4d002359f..72bfbf54e 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -1195,8 +1195,6 @@ pub fn copy(sources: &[PathBuf], target: &Path, options: &Options) -> CopyResult // FIXME: compare sources by the actual file they point to, not their path. (e.g. dir/file == dir/../dir/file in most cases) show_warning!("source {} specified more than once", source.quote()); } else { - // We need to compute the destination path - let dest = construct_dest_path(source, target, target_type, options) .unwrap_or_else(|_| target.to_path_buf()); diff --git a/src/uu/ln/src/ln.rs b/src/uu/ln/src/ln.rs index e53af03a2..a056ee256 100644 --- a/src/uu/ln/src/ln.rs +++ b/src/uu/ln/src/ln.rs @@ -342,7 +342,7 @@ fn link_files_in_dir(files: &[PathBuf], target_dir: &Path, settings: &Settings) }; if linked_destinations.contains(&targetpath) { - // If the target file was already created in this linked call, do not overwrite + // If the target file was already created in this ln call, do not overwrite show_error!( "will not overwrite just-created '{}' with '{}'", targetpath.display(), diff --git a/tests/by-util/test_ln.rs b/tests/by-util/test_ln.rs index e51d99732..78978a06e 100644 --- a/tests/by-util/test_ln.rs +++ b/tests/by-util/test_ln.rs @@ -747,7 +747,7 @@ fn test_ln_seen_file() { assert!(at.plus("c").join("f").exists()); // b/f still exists assert!(at.plus("b").join("f").exists()); - // a/f no longer exists + // a/f still exists assert!(at.plus("a").join("f").exists()); #[cfg(unix)] {