diff options
author | Daniel <kingdread@gmx.de> | 2021-11-12 14:08:35 +0100 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2021-11-12 14:08:35 +0100 |
commit | 2e2bdac00092f8fcb96283da697a7a820a8c8978 (patch) | |
tree | 6a49f4f852c39a261d7210a002d6f39dc377a581 /src/output | |
parent | 14d90bcbe6cef70d0ab99cb3285038fbd6385efa (diff) | |
download | raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.tar.gz raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.tar.bz2 raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.zip |
Minor code smell fixes
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/sorting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Self, Self::Err> { - if s == "" { + if s.is_empty() { return Ok(Sorting::default()); } let parts = s.split(','); |