Fix clippy lints in wgpu benchmark

This commit is contained in:
Héctor Ramón Jiménez 2024-05-08 20:34:31 +02:00
parent fb5f1ba0bc
commit 7e7af91e6f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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!(