1
Fork 0
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:
Sylvestre Ledru 2022-03-31 00:11:02 +02:00
parent 15ef76fcbf
commit 526370f922

View file

@ -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) => {