Use built-in [lints] table in Cargo.toml

This commit is contained in:
Héctor Ramón Jiménez 2024-04-07 12:42:12 +02:00
parent a865b38002
commit 5cd98f069d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
32 changed files with 274 additions and 244 deletions

View file

@ -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 {