Make get_cache_dir private

This commit is contained in:
sharkdp 2020-04-21 14:56:53 +02:00 committed by David Peter
parent 95a56a2795
commit c8273369cc

View file

@ -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
let cache_dir_op = env::var_os("BAT_CACHE_PATH").map(PathBuf::from);
if cache_dir_op.is_some() {