mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57: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::FailedToLink(s, d, e) => write!(f, "failed to link {} to {}: {}", s.quote(), d.quote(), e),
|
||||||
Self::SameFile(e, e2) => write!(
|
Self::SameFile(e, e2) => write!(
|
||||||
f,
|
f,
|
||||||
"'{}' and '{}' are the same file",
|
"{} and {} are the same file",
|
||||||
e2.display(),
|
e2.quote(),
|
||||||
e.display()
|
e.quote()
|
||||||
),
|
),
|
||||||
Self::SomeLinksFailed => write!(f, "some links failed to create"),
|
Self::SomeLinksFailed => write!(f, "some links failed to create"),
|
||||||
Self::MissingDestination(s) => {
|
Self::MissingDestination(s) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue