1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Fix some obvious comment

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
Sylvestre Ledru 2023-12-25 09:47:37 +01:00
parent 15573579cc
commit f86e314f46
3 changed files with 2 additions and 4 deletions

View file

@ -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) // 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()); show_warning!("source {} specified more than once", source.quote());
} else { } else {
// We need to compute the destination path
let dest = construct_dest_path(source, target, target_type, options) let dest = construct_dest_path(source, target, target_type, options)
.unwrap_or_else(|_| target.to_path_buf()); .unwrap_or_else(|_| target.to_path_buf());

View file

@ -342,7 +342,7 @@ fn link_files_in_dir(files: &[PathBuf], target_dir: &Path, settings: &Settings)
}; };
if linked_destinations.contains(&targetpath) { 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!( show_error!(
"will not overwrite just-created '{}' with '{}'", "will not overwrite just-created '{}' with '{}'",
targetpath.display(), targetpath.display(),

View file

@ -747,7 +747,7 @@ fn test_ln_seen_file() {
assert!(at.plus("c").join("f").exists()); assert!(at.plus("c").join("f").exists());
// b/f still exists // b/f still exists
assert!(at.plus("b").join("f").exists()); assert!(at.plus("b").join("f").exists());
// a/f no longer exists // a/f still exists
assert!(at.plus("a").join("f").exists()); assert!(at.plus("a").join("f").exists());
#[cfg(unix)] #[cfg(unix)]
{ {