From 644fd1c93ed38a0752380f111c93b9c7b6ff6256 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 25 Jun 2023 22:29:08 +0200 Subject: [PATCH] fix some clippy warnings --- src/uu/seq/src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/seq/src/error.rs b/src/uu/seq/src/error.rs index ad6b5733a3c..4945914d156 100644 --- a/src/uu/seq/src/error.rs +++ b/src/uu/seq/src/error.rs @@ -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() } ) }