mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Make get_cache_dir private
This commit is contained in:
1 parent
95a56a2795
commit
c8273369cc
1 file changed
+1
-1
@@ -32,7 +32,7 @@ impl BatProjectDirs {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_cache_dir() -> Option<PathBuf> {
|
fn get_cache_dir() -> Option<PathBuf> {
|
||||||
// on all OS prefer BAT_CACHE_PATH if set
|
// on all OS prefer BAT_CACHE_PATH if set
|
||||||
let cache_dir_op = env::var_os("BAT_CACHE_PATH").map(PathBuf::from);
|
let cache_dir_op = env::var_os("BAT_CACHE_PATH").map(PathBuf::from);
|
||||||
if cache_dir_op.is_some() {
|
if cache_dir_op.is_some() {
|
||||||
|
|||||||
Reference in new issue
Block a user