Fix clippy warnings for embedded build

When building the `embedded` test crate `clippy` emits two warnings
of form:

  warning: unused variable: `foo`

Use `_` instead of a named variable.
This commit is contained in:
Tobin C. Harding 2023-06-28 14:33:41 +10:00
parent 5b1443a91c
commit 0848ab7e25
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ mod primitive {
use crate::prelude::*;
#[cfg(any(target_pointer_width = "16", target_pointer_width = "32"))]
fn check_limit(len: usize) -> Result<(), PushBytesError> { Ok(()) }
fn check_limit(_: usize) -> Result<(), PushBytesError> { Ok(()) }
#[cfg(not(any(target_pointer_width = "16", target_pointer_width = "32")))]
fn check_limit(len: usize) -> Result<(), PushBytesError> {
@ -380,7 +380,7 @@ mod error {
}
impl fmt::Display for PushBytesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.never {} }
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result { match self.never {} }
}
}