Skip to content

Commit

Permalink
perf: resolve clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
replydev committed Aug 30, 2024
1 parent effd184 commit 565d452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn init_path(args: &CotpArgs) -> PathBuf {
.map(String::from)
.or(env::var("COTP_DB_PATH").ok())
.map(PathBuf::from)
.unwrap_or_else(|| get_default_db_path())
.unwrap_or_else(get_default_db_path)
})
.to_owned()
}
Expand Down

0 comments on commit 565d452

Please sign in to comment.