aboutsummaryrefslogtreecommitdiff
path: root/src/output/sorting.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2021-11-12 14:08:35 +0100
committerDaniel <kingdread@gmx.de>2021-11-12 14:08:35 +0100
commit2e2bdac00092f8fcb96283da697a7a820a8c8978 (patch)
tree6a49f4f852c39a261d7210a002d6f39dc377a581 /src/output/sorting.rs
parent14d90bcbe6cef70d0ab99cb3285038fbd6385efa (diff)
downloadraidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.tar.gz
raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.tar.bz2
raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.zip
Minor code smell fixes
Diffstat (limited to 'src/output/sorting.rs')
-rw-r--r--src/output/sorting.rs2
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(',');