diff options
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index c48063d3..36ac3319 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1198,7 +1198,7 @@ impl Config { let mut f = fs::File::open(path)?; let mut contents = String::new(); f.read_to_string(&mut contents)?; - if contents.len() == 0 { + if contents.is_empty() { return Err(Error::Empty); } |