summaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-07 12:42:12 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-07 12:42:12 +0200
commit5cd98f069dea8720bca7748d6c12fa410cbe79b5 (patch)
tree99ce1271cb61c0afa84908b7bd52a94f2b2a652d /benches
parenta865b380026ce8c26b818e8e94ea14cb930865a3 (diff)
downloadiced-5cd98f069dea8720bca7748d6c12fa410cbe79b5.tar.gz
iced-5cd98f069dea8720bca7748d6c12fa410cbe79b5.tar.bz2
iced-5cd98f069dea8720bca7748d6c12fa410cbe79b5.zip
Use built-in `[lints]` table in `Cargo.toml`
Diffstat (limited to 'benches')
-rw-r--r--benches/wgpu.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/benches/wgpu.rs b/benches/wgpu.rs
index 617be16d..2c117858 100644
--- a/benches/wgpu.rs
+++ b/benches/wgpu.rs
@@ -1,3 +1,4 @@
+#![allow(missing_docs)]
use criterion::{criterion_group, criterion_main, Bencher, Criterion};
use iced::alignment;
@@ -12,8 +13,12 @@ criterion_main!(benches);
criterion_group!(benches, wgpu_benchmark);
pub fn wgpu_benchmark(c: &mut Criterion) {
- c.bench_function("wgpu — canvas (light)", |b| benchmark(b, scene(10)));
- c.bench_function("wgpu — canvas (heavy)", |b| benchmark(b, scene(1_000)));
+ let _ = c
+ .bench_function("wgpu — canvas (light)", |b| benchmark(b, scene(10)));
+
+ let _ = c.bench_function("wgpu — canvas (heavy)", |b| {
+ benchmark(b, scene(1_000))
+ });
}
fn benchmark<'a>(
@@ -98,7 +103,7 @@ fn benchmark<'a>(
);
bencher.iter(|| {
- user_interface.draw(
+ let _ = user_interface.draw(
&mut renderer,
&Theme::Dark,
&core::renderer::Style {