Skip to content

Commit 2a0ea29

Browse files
committed
Fix clippy lint
1 parent 63bab9b commit 2a0ea29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surface-dtx-userd/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub enum LogLevel {
4040
impl Config {
4141
pub fn load() -> Result<(Config, Diagnostics)> {
4242
let mut user_config = std::env::var_os("XDG_CONFIG_HOME")
43-
.and_then(|d| if d != "" { Some(d) } else { None })
43+
.and_then(|d| if !d.is_empty() { Some(d) } else { None })
4444
.map(PathBuf::from)
4545
.unwrap_or_else(|| PathBuf::from("~/.config"));
4646
user_config.push(USER_CONFIG_LOCAL_PATH);

0 commit comments

Comments
 (0)