1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-11 07:42:35 +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

@@ -117,7 +117,7 @@ impl HighlightingAssets {
}
}
pub fn save_to_cache(&self, target_dir: &Path) -> Result<()> {
pub fn save_to_cache(&self, target_dir: &Path, current_version: &str) -> Result<()> {
let _ = fs::create_dir_all(target_dir);
let theme_set_path = target_dir.join("themes.bin");
let syntax_set_path = target_dir.join("syntaxes.bin");
@@ -150,7 +150,7 @@ impl HighlightingAssets {
"Writing metadata to folder {} ... ",
target_dir.to_string_lossy()
);
AssetsMetadata::new().save_to_folder(target_dir)?;
AssetsMetadata::new(current_version).save_to_folder(target_dir)?;
println!("okay");
Ok(())