Skip to content

Commit

Permalink
fix: cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeheonji committed Jul 31, 2023
1 parent 3c53f43 commit 53685d2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions zellij-utils/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,8 @@ lazy_static! {
.cache_dir()
.to_path_buf()
.join(format!("{}", Uuid::new_v4()));
pub static ref ZELLIJ_PLUGIN_PERMISSIONS_CACHE: PathBuf = {
#[cfg(not(test))]
{
ZELLIJ_CACHE_DIR.join("permissions.kdl")
}
#[cfg(test)]
{
std::env::temp_dir().join("permissions.kdl")
}
};
pub static ref ZELLIJ_PLUGIN_PERMISSIONS_CACHE: PathBuf =
ZELLIJ_CACHE_DIR.join("permissions.kdl");
}

pub const FEATURES: &[&str] = &[
Expand Down

0 comments on commit 53685d2

Please sign in to comment.