chore: bump client api 088 (#7004)

* chore: bump client api

* chore: bump client api

* chore: fix clippy
This commit is contained in:
Nathan.fooo 2024-12-18 12:12:58 +08:00 committed by GitHub
parent 0689f4e7e1
commit 9d53f758d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1016 additions and 270 deletions

View file

@ -34,7 +34,10 @@ pub(crate) fn plugin_map_or_crash(plugins: Vec<AFPlugin>) -> AFPluginMap {
events.into_iter().for_each(|e| {
if plugin_map.contains_key(&e) {
let plugin_name = plugin_map.get(&e).map(|p| &p.name);
panic!("Error: {:?} is already defined in {:?}", &e, plugin_name,);
panic!(
"Error: {:?} is already defined in {:?}",
&e, plugin_name,
);
}
plugin_map.insert(e, plugins.clone());
});