mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
ln: use the quote method instead of doing it by hand
This commit is contained in:
+3
-3
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user