Skip to content

Commit 565d452

Browse files
committed
perf: resolve clippy lints
1 parent effd184 commit 565d452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn init_path(args: &CotpArgs) -> PathBuf {
2020
.map(String::from)
2121
.or(env::var("COTP_DB_PATH").ok())
2222
.map(PathBuf::from)
23-
.unwrap_or_else(|| get_default_db_path())
23+
.unwrap_or_else(get_default_db_path)
2424
})
2525
.to_owned()
2626
}

0 commit comments

Comments
 (0)