mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 04:48:48 +00:00
Make get_cache_dir private
This commit is contained in:
parent
95a56a2795
commit
c8273369cc
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user