diff options
author | Sam Tay <samctay@pm.me> | 2022-12-19 12:02:02 -0800 |
---|---|---|
committer | Sam Tay <samctay@pm.me> | 2022-12-19 12:02:02 -0800 |
commit | 3cebcaa32e5dd460b3c98910123a93f10faed81c (patch) | |
tree | 6064ac8ce37ea434af364fab77a07e546f67a0d8 | |
parent | 07a265381e9dff40c5491752af2efed07e651b6d (diff) |
Fix clippy warnings
-rw-r--r-- | src/config.rs | 2 | ||||
-rw-r--r-- | src/stackexchange/local_storage.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 2c1500d..eaf62cd 100644 --- a/src/config.rs +++ b/src/config.rs @@ -74,7 +74,7 @@ impl Config { pub fn new() -> Result<Self> { let project = Self::project_dir()?; let dir = project.config_dir(); - fs::create_dir_all(&dir)?; + fs::create_dir_all(dir)?; let filename = Self::config_file_path()?; match utils::open_file(&filename)? { diff --git a/src/stackexchange/local_storage.rs b/src/stackexchange/local_storage.rs index 1d0af2c..b982b6f 100644 --- a/src/stackexchange/local_storage.rs +++ b/src/stackexchange/local_storage.rs @@ -44,7 +44,7 @@ impl LocalStorage { pub async fn new(update: bool) -> Result<Self> { let project = Config::project_dir()?; let dir = project.cache_dir(); - fs::create_dir_all(&dir)?; + fs::create_dir_all(dir)?; let sites_filename = dir.join("sites.json"); let sites = Self::init_sites(&sites_filename, update).await?; Ok(LocalStorage { sites }) |