Use a better match

This commit is contained in:
Charles Marsh 2022-08-12 19:17:13 -04:00
parent 84abe7f430
commit 0a034ddb57
1 changed files with 2 additions and 3 deletions

View File

@ -62,13 +62,12 @@ pub fn set(path: &Path, messages: &[Message]) {
},
messages,
};
match cacache::write_sync(
if let Err(e) = cacache::write_sync(
cache_dir(),
cache_key(path),
bincode::serialize(&check_result).unwrap(),
) {
Ok(_) => {}
Err(e) => error!("Failed to write to cache: {e:?}"),
error!("Failed to write to cache: {e:?}")
}
}
}