From 7e7af91e6f7dc187e8fb95746d8811289a088217 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 8 May 2024 20:34:31 +0200 Subject: Fix `clippy` lints in `wgpu` benchmark --- benches/wgpu.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'benches') diff --git a/benches/wgpu.rs b/benches/wgpu.rs index 02c7b1f9..0e407253 100644 --- a/benches/wgpu.rs +++ b/benches/wgpu.rs @@ -15,10 +15,10 @@ criterion_group!(benches, wgpu_benchmark); #[allow(unused_results)] pub fn wgpu_benchmark(c: &mut Criterion) { c.bench_function("wgpu — canvas (light)", |b| { - benchmark(b, |_| scene(10)) + benchmark(b, |_| scene(10)); }); c.bench_function("wgpu — canvas (heavy)", |b| { - benchmark(b, |_| scene(1_000)) + benchmark(b, |_| scene(1_000)); }); c.bench_function("wgpu - layered text (light)", |b| { @@ -212,7 +212,7 @@ fn dynamic_text<'a, Message: 'a>( n: usize, i: usize, ) -> Element<'a, Message, Theme, Renderer> { - const LOREM_IPSUM: &'static str = include_str!("ipsum.txt"); + const LOREM_IPSUM: &str = include_str!("ipsum.txt"); scrollable( text(format!( -- cgit