From 0d97734e92e59af4b796171871edee36b6823e69 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 26 Nov 2018 18:02:29 +0100 Subject: [PATCH] use is_empty() to check for empty string --- src/section_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/section_config.rs b/src/section_config.rs index 980554e7..8a431a8d 100644 --- a/src/section_config.rs +++ b/src/section_config.rs @@ -78,7 +78,7 @@ impl SectionConfig { pub fn default_parse_section_header(line: &str) -> Option<(String, String)> { - if line.len() == 0 { return None; }; + if line.is_empty() { return None; }; let first_char = line.chars().next().unwrap();