TODO: Maybe just clear individual platforms? This works well enough either way.
()
| 44 | |
| 45 | // TODO: Maybe just clear individual platforms? This works well enough either way. |
| 46 | pub fn invalidate_function_matcher_cache() { |
| 47 | let matcher_cache = PLAT_MATCHER_CACHE.get_or_init(Default::default); |
| 48 | matcher_cache.clear(); |
| 49 | } |
| 50 | |
| 51 | #[derive(Debug, Default, Clone)] |
| 52 | pub struct Matcher { |