Skip to content

Commit

Permalink
fix: fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv committed Aug 23, 2023
1 parent 6cfc1c5 commit 175aadf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ pub const RODO_DB_FILENAME: &str = ".rododb";

// 获取 db 文件路径
pub fn get_db_file_path() -> std::path::PathBuf {
let dir = home_dir()
home_dir()
.map(|it| it.join(RODO_DB_FILENAME))
.unwrap_or_default();
dir
.unwrap_or_default()
}

/// 检查 db 文件是否存在
Expand Down

0 comments on commit 175aadf

Please sign in to comment.