mirror of https://github.com/astral-sh/ruff
Use a better match
This commit is contained in:
parent
84abe7f430
commit
0a034ddb57
|
|
@ -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:?}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue