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:
parent
15573579cc
commit
f86e314f46
3 changed files with 2 additions and 4 deletions
|
@ -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());
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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)]
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue