mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 14:00:51 -05:00
Use a better match
This commit is contained in:
@@ -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:?}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user