mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ln: use the quote method instead of doing it by hand
This commit is contained in:
parent
15ef76fcbf
commit
526370f922
1 changed files with 3 additions and 3 deletions
|
@ -66,9 +66,9 @@ impl Display for LnError {
|
|||
Self::FailedToLink(s, d, e) => write!(f, "failed to link {} to {}: {}", s.quote(), d.quote(), e),
|
||||
Self::SameFile(e, e2) => write!(
|
||||
f,
|
||||
"'{}' and '{}' are the same file",
|
||||
e2.display(),
|
||||
e.display()
|
||||
"{} and {} are the same file",
|
||||
e2.quote(),
|
||||
e.quote()
|
||||
),
|
||||
Self::SomeLinksFailed => write!(f, "some links failed to create"),
|
||||
Self::MissingDestination(s) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue