1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

fix some clippy warnings

This commit is contained in:
Sylvestre Ledru 2023-06-25 22:29:08 +02:00
parent 0b06f2b4a8
commit 644fd1c93e

View file

@ -72,10 +72,10 @@ impl Display for SeqError {
f,
"{}{}",
self.argtype(),
if self.arg() != "" {
self.arg().quote().to_string()
if self.arg() == "" {
String::new()
} else {
"".to_string()
self.arg().quote().to_string()
}
)
}