Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/uu/ln/src/ln.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#[derive(Error, Debug)]
enum LnError {
#[error("target {} is not a directory", _0.quote())]
TargetIsDirectory(PathBuf),
TargetIsNotADirectory(PathBuf),

#[error("")]
SomeLinksFailed,
Expand Down Expand Up @@ -283,7 +283,7 @@
#[allow(clippy::cognitive_complexity)]
fn link_files_in_dir(files: &[PathBuf], target_dir: &Path, settings: &Settings) -> UResult<()> {
if !target_dir.is_dir() {
return Err(LnError::TargetIsDirectory(target_dir.to_owned()).into());
return Err(LnError::TargetIsNotADirectory(target_dir.to_owned()).into());

Check warning on line 286 in src/uu/ln/src/ln.rs

View check run for this annotation

Codecov / codecov/patch

src/uu/ln/src/ln.rs#L286

Added line #L286 was not covered by tests
}
// remember the linked destinations for further usage
let mut linked_destinations: HashSet<PathBuf> = HashSet::with_capacity(files.len());
Expand Down
Loading