fn ensure_cache_dir() -> std::io::Result<PathBuf> {
    let dir = cache_dir();
    std::fs::create_dir_all(&dir)?;
    Ok(dir)
}
/// Returns a directory to be used as cache, creating it if it doesn't exist
///
/// Cf `cache_dir()` to understand how the cache dir is selected.
Returns a directory to be used as cache, creating it if it doesn't exist
Cf `cache_dir()` to understand how the cache dir is selected.
Returns a directory to be used as cache creating it if it doesn ' t exist Cf ` cache_dir () ` to understand how the cache dir is selected .
fn ensure_cache_dir() -> std::io::Result<PathBuf> {
    let dir = cache_dir();
    std::fs::create_dir_all(&dir)?;
    Ok(dir)
}
fn ensure_cache_dir ( ) -> std :: io :: Result < PathBuf > { let dir = cache_dir ( ) ; std :: fs :: create_dir_all ( & dir ) ? ; Ok ( dir ) }
Returns a directory to be used as cache, creating it if it doesn't exist
Cf `cache_dir()` to understand how the cache dir is selected.
Returns a directory to be used as cache creating it if it doesn ' t exist Cf ` cache_dir () ` to understand how the cache dir is selected .