From 2e2bdac00092f8fcb96283da697a7a820a8c8978 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Nov 2021 14:08:35 +0100 Subject: Minor code smell fixes --- src/output/sorting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output/sorting.rs') diff --git a/src/output/sorting.rs b/src/output/sorting.rs index 2ed746a..234d804 100644 --- a/src/output/sorting.rs +++ b/src/output/sorting.rs @@ -95,7 +95,7 @@ impl FromStr for Sorting { type Err = InvalidComponent; fn from_str(s: &str) -> Result { - if s == "" { + if s.is_empty() { return Ok(Sorting::default()); } let parts = s.split(','); -- cgit v1.2.3