diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 0127c3479..dcea74bc7 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.82.0" +channel = "1.83.0" components = ["rustfmt", "clippy"] profile = "minimal" diff --git a/src/arch.rs b/src/arch.rs index 6a4b6efa1..e90079e8a 100644 --- a/src/arch.rs +++ b/src/arch.rs @@ -57,7 +57,7 @@ impl<'a> ValueWithInfoWrapper<'a> { } } -impl<'a> AbiArgument for ValueWithInfoWrapper<'a> { +impl AbiArgument for ValueWithInfoWrapper<'_> { fn to_bytes(&self, buffer: &mut Vec) -> Result<()> { match (self.value, self.info) { (value, CoreTypeConcrete::Box(info)) => { diff --git a/src/cache/aot.rs b/src/cache/aot.rs index 357afd5f2..28aaa6a91 100644 --- a/src/cache/aot.rs +++ b/src/cache/aot.rs @@ -77,7 +77,7 @@ where } } -impl<'a, K> Debug for AotProgramCache<'a, K> +impl Debug for AotProgramCache<'_, K> where K: PartialEq + Eq + Hash, { diff --git a/src/cache/jit.rs b/src/cache/jit.rs index 6ed6b5ce7..975f692f5 100644 --- a/src/cache/jit.rs +++ b/src/cache/jit.rs @@ -58,7 +58,7 @@ where } } -impl<'a, K> Debug for JitProgramCache<'a, K> +impl Debug for JitProgramCache<'_, K> where K: Eq + Hash + PartialEq, { diff --git a/src/executor/jit.rs b/src/executor/jit.rs index 500cfcdf0..ad707d994 100644 --- a/src/executor/jit.rs +++ b/src/executor/jit.rs @@ -28,8 +28,8 @@ pub struct JitNativeExecutor<'m> { gas_metadata: GasMetadata, } -unsafe impl<'a> Send for JitNativeExecutor<'a> {} -unsafe impl<'a> Sync for JitNativeExecutor<'a> {} +unsafe impl Send for JitNativeExecutor<'_> {} +unsafe impl Sync for JitNativeExecutor<'_> {} impl std::fmt::Debug for JitNativeExecutor<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/src/libfuncs.rs b/src/libfuncs.rs index 52e76fd86..9fee168a0 100644 --- a/src/libfuncs.rs +++ b/src/libfuncs.rs @@ -411,7 +411,7 @@ where } } -impl<'ctx, 'this> Deref for LibfuncHelper<'ctx, 'this> { +impl<'ctx> Deref for LibfuncHelper<'ctx, '_> { type Target = Module<'ctx>; fn deref(&self) -> &Self::Target { diff --git a/src/libfuncs/function_call.rs b/src/libfuncs/function_call.rs index 6bd322b91..2c9d63b89 100644 --- a/src/libfuncs/function_call.rs +++ b/src/libfuncs/function_call.rs @@ -175,7 +175,7 @@ pub fn build<'ctx, 'this>( arguments.insert(0, stack_ptr); Some(true) - } else if return_types.first().is_some() { + } else if !return_types.is_empty() { let (type_id, type_info) = return_types[0]; result_types.push(type_info.build(context, helper, registry, metadata, type_id)?); diff --git a/src/types.rs b/src/types.rs index 55ab2b7c8..cc2e6e847 100644 --- a/src/types.rs +++ b/src/types.rs @@ -965,13 +965,13 @@ impl<'a, T> WithSelf<'a, T> { } } -impl<'a, T> AsRef for WithSelf<'a, T> { +impl AsRef for WithSelf<'_, T> { fn as_ref(&self) -> &T { self.inner } } -impl<'a, T> Deref for WithSelf<'a, T> { +impl Deref for WithSelf<'_, T> { type Target = T; fn deref(&self) -> &T {