Skip to content

Commit

Permalink
unsilence many warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Oct 29, 2024
1 parent 5ce2c46 commit 877f519
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/core/src/untyped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1484,17 +1484,17 @@ macro_rules! impl_encode_untyped_slice {
$tuple: Into<UntypedVal>
),*
{
#[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())

Check warning on line 1491 in crates/core/src/untyped.rs

View check run for this annotation

Codecov / codecov/patch

crates/core/src/untyped.rs#L1491

Added line #L1491 was not covered by tests
};
let ( $( $tuple ,)* ) = self;
let mut i = 0;
let mut _i = 0;
$(
results[i] = <$tuple as Into<UntypedVal>>::into($tuple);
i += 1;
_results[_i] = <$tuple as Into<UntypedVal>>::into($tuple);
_i += 1;
)*
Ok(())
}
Expand Down

0 comments on commit 877f519

Please sign in to comment.