Skip to content

Commit 6104350

Browse files
committed
chore: resolve clippy lints
1 parent 8568771 commit 6104350

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/path.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn get_default_db_path() -> PathBuf {
3939
data_dir()
4040
.map(PathBuf::from)
4141
.map(|p| p.join(XDG_PATH))
42-
.map(|xdg| {
42+
.inspect(|xdg| {
4343
if !xdg.exists() {
4444
if let Some(home) = &home_path {
4545
if home.exists() {
@@ -49,7 +49,6 @@ fn get_default_db_path() -> PathBuf {
4949
}
5050
}
5151
}
52-
xdg
5352
})
5453
.or(home_path)
5554
.unwrap_or(portable_path)

0 commit comments

Comments
 (0)