From add06dafdf874b1b419e5eef918c6b1131ab09fd Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 25 Mar 2023 17:42:28 +0100 Subject: perf: improve XML deserialization speed --- benches/registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benches') diff --git a/benches/registry.rs b/benches/registry.rs index 9bfe9c4..27dc65d 100644 --- a/benches/registry.rs +++ b/benches/registry.rs @@ -4,7 +4,7 @@ use opengl_registry::Registry; fn bench_registry(crit: &mut Criterion) { crit.bench_function("retrieve registry from included XML file", |bencher| { - bencher.iter(Registry::retrieve) + bencher.iter(|| Registry::retrieve().unwrap()) }); } -- cgit v1.2.3-18-g5258