From 175aadfaedb23e4050916355a1a3f1511a55bdd3 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Wed, 23 Aug 2023 16:17:22 +0800 Subject: [PATCH] fix: fix clippy issue --- src/utils.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 6f1d717..cf634e8 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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 文件是否存在