From 6f2f158ef1dcfcb9f2c78016168083a8cc3feac1 Mon Sep 17 00:00:00 2001 From: Cyrill Leutwiler Date: Tue, 10 Dec 2024 15:24:25 +0100 Subject: [PATCH] fix new clippy lint (#132) Signed-off-by: Cyrill Leutwiler --- crates/benchmarks/benches/execute.rs | 2 +- crates/llvm-context/src/polkavm/context/evmla_data.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/benchmarks/benches/execute.rs b/crates/benchmarks/benches/execute.rs index 5bb05051..9e0c2b99 100644 --- a/crates/benchmarks/benches/execute.rs +++ b/crates/benchmarks/benches/execute.rs @@ -46,7 +46,7 @@ fn group<'error, M>(c: &'error mut Criterion, group_name: &str) -> BenchmarkG where M: Measurement, { - return c.benchmark_group(group_name); + c.benchmark_group(group_name) } fn bench_baseline(c: &mut Criterion) { diff --git a/crates/llvm-context/src/polkavm/context/evmla_data.rs b/crates/llvm-context/src/polkavm/context/evmla_data.rs index ba8ac97e..f9e27a0c 100644 --- a/crates/llvm-context/src/polkavm/context/evmla_data.rs +++ b/crates/llvm-context/src/polkavm/context/evmla_data.rs @@ -13,7 +13,7 @@ pub struct EVMLAData<'ctx> { pub stack: Vec>, } -impl<'ctx> EVMLAData<'ctx> { +impl EVMLAData<'_> { /// The default stack size. pub const DEFAULT_STACK_SIZE: usize = 64;