diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-18 13:31:52 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-18 13:55:13 +0100 |
| commit | eb53b7ec0306fd0c1cc89203858d07676f4cce10 (patch) | |
| tree | 8e5d17997faa951e4c5abde7a808456d91c98ec4 /src/config.rs | |
| parent | 135697a06b5c8c6c6253e39d08afab0a87bace0e (diff) | |
refactor(fetch): move database cache
into cache directory rather than config directories
also removed CodeCollaboration from path as this isn't helpful
whilst this is a breaking change, the cache was only introduced
during development of this version so it is not
highlighted as such
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index f5dba98..547fe7e 100644 --- a/src/config.rs +++ b/src/config.rs | |||
| @@ -5,7 +5,7 @@ use nostr_sdk::Timestamp; | |||
| 5 | use serde::{self, Deserialize, Serialize}; | 5 | use serde::{self, Deserialize, Serialize}; |
| 6 | 6 | ||
| 7 | pub fn get_dirs() -> Result<ProjectDirs> { | 7 | pub fn get_dirs() -> Result<ProjectDirs> { |
| 8 | ProjectDirs::from("", "CodeCollaboration", "ngit").ok_or(anyhow!( | 8 | ProjectDirs::from("", "", "ngit").ok_or(anyhow!( |
| 9 | "should find operating system home directories with rust-directories crate" | 9 | "should find operating system home directories with rust-directories crate" |
| 10 | )) | 10 | )) |
| 11 | } | 11 | } |