From 877f5193f799d317454f34071c72ced0786370e7 Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Tue, 29 Oct 2024 21:06:34 +0100 Subject: [PATCH] unsilence many warnings --- crates/core/src/untyped.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/core/src/untyped.rs b/crates/core/src/untyped.rs index 31e4d9c636..adc2271e2c 100644 --- a/crates/core/src/untyped.rs +++ b/crates/core/src/untyped.rs @@ -1484,17 +1484,17 @@ macro_rules! impl_encode_untyped_slice { $tuple: Into ),* { - #[allow(non_snake_case, unused_variables, unused_mut, unused_assignments)] + #[allow(non_snake_case)] #[inline] fn encode_untyped_slice<'a>(self, results: &'a mut [UntypedVal]) -> Result<(), UntypedError> { - let Ok(mut results) = <&'a mut [UntypedVal; $n]>::try_from(results) else { + let Ok(_results) = <&'a mut [UntypedVal; $n]>::try_from(results) else { return Err(UntypedError::invalid_len()) }; let ( $( $tuple ,)* ) = self; - let mut i = 0; + let mut _i = 0; $( - results[i] = <$tuple as Into>::into($tuple); - i += 1; + _results[_i] = <$tuple as Into>::into($tuple); + _i += 1; )* Ok(()) }