Use built-in [lints] table in Cargo.toml
This commit is contained in:
parent
a865b38002
commit
5cd98f069d
32 changed files with 274 additions and 244 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue