diff --git a/Cargo.toml b/Cargo.toml index 8341c4d..dc9f15d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "eventbus" -version = "0.5.1" +version = "0.5.2" authors = ["SoniEx2 "] description = "Safe, fast and concurrent event system, inspired by the MinecraftForge event bus." keywords = ["event", "safe", "fast", "concurrent", "bus"] diff --git a/benches/post_single_benchmark.rs b/benches/post_single_benchmark.rs index f474b1b..6e8a1c3 100644 --- a/benches/post_single_benchmark.rs +++ b/benches/post_single_benchmark.rs @@ -18,7 +18,7 @@ fn my_hook(_event: &mut MyEvent) { fn criterion_benchmark(c: &mut Criterion) { let bus = EventBus::new(); register_hook!(&bus, 0, MyEvent, my_hook); - c.bench_function("one_hook", move |b| b.iter(|| post_event!(&bus, MyEvent, &mut MyEvent {}))); + c.bench_function("one_hook", move |b| b.iter(|| post_event!(&bus, &mut MyEvent {}, MyEvent))); } criterion_group!(benches, criterion_benchmark);