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,
|
messages,
|
||||||
};
|
};
|
||||||
match cacache::write_sync(
|
if let Err(e) = cacache::write_sync(
|
||||||
cache_dir(),
|
cache_dir(),
|
||||||
cache_key(path),
|
cache_key(path),
|
||||||
bincode::serialize(&check_result).unwrap(),
|
bincode::serialize(&check_result).unwrap(),
|
||||||
) {
|
) {
|
||||||
Ok(_) => {}
|
error!("Failed to write to cache: {e:?}")
|
||||||
Err(e) => error!("Failed to write to cache: {e:?}"),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue