1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 03:42:26 +01:00

Fix compilation of library

This commit is contained in:
sharkdp
2020-04-21 17:19:07 +02:00
committed by David Peter
parent 886b22e0ee
commit 2e9cf63a5f
5 changed files with 11 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ pub fn clear_assets() {
pub fn assets_from_cache_or_binary() -> Result<HighlightingAssets> {
let cache_dir = PROJECT_DIRS.cache_dir();
if let Some(metadata) = AssetsMetadata::load_from_folder(&cache_dir)? {
if !metadata.is_compatible() {
if !metadata.is_compatible_with(crate_version!()) {
return Err(format!(
"The binary caches for the user-customized syntaxes and themes \
in '{}' are not compatible with this version of bat ({}). To solve this, \