summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authornickelc <constantin.nickel@gmail.com>2023-03-05 21:07:25 +0100
committerGitHub <noreply@github.com>2023-03-05 15:07:25 -0500
commita8446c53bb32fa7c2d1fc4cddb4720b737b2cc8a (patch)
treed8cb7c6481536d1efd08fe9cf244e924c8733519 /src/utils
parenta30aa5f88fb707953e2c78e9f888d147d03a3fe3 (diff)
Update dependencies & switch back to the `dirs` crate (#1325)
* Update direct dependencies * Update transient dependencies * Switch back to `dirs` crate The `dirs`/`dirs-sys` repositories are unarchived and the crates are maintained again, while `dirs-next` crates aren't.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/bat/dirs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/bat/dirs.rs b/src/utils/bat/dirs.rs
index efaef81..00fc0dd 100644
--- a/src/utils/bat/dirs.rs
+++ b/src/utils/bat/dirs.rs
@@ -20,10 +20,10 @@ impl BatProjectDirs {
let cache_dir_op = env::var_os("XDG_CACHE_HOME")
.map(PathBuf::from)
.filter(|p| p.is_absolute())
- .or_else(|| dirs_next::home_dir().map(|d| d.join(".cache")));
+ .or_else(|| dirs::home_dir().map(|d| d.join(".cache")));
#[cfg(not(target_os = "macos"))]
- let cache_dir_op = dirs_next::cache_dir();
+ let cache_dir_op = dirs::cache_dir();
let cache_dir = cache_dir_op.map(|d| d.join("bat"))?;