From 526370f922d340c3c55e312f31838cccc81db955 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 31 Mar 2022 00:11:02 +0200 Subject: [PATCH] ln: use the quote method instead of doing it by hand --- src/uu/ln/src/ln.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/ln/src/ln.rs b/src/uu/ln/src/ln.rs index 08eef6ae7..0d9d8579e 100644 --- a/src/uu/ln/src/ln.rs +++ b/src/uu/ln/src/ln.rs @@ -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) => {