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:
parent
5b1443a91c
commit
0848ab7e25
|
@ -25,7 +25,7 @@ mod primitive {
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
|
||||||
#[cfg(any(target_pointer_width = "16", target_pointer_width = "32"))]
|
#[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")))]
|
#[cfg(not(any(target_pointer_width = "16", target_pointer_width = "32")))]
|
||||||
fn check_limit(len: usize) -> Result<(), PushBytesError> {
|
fn check_limit(len: usize) -> Result<(), PushBytesError> {
|
||||||
|
@ -380,7 +380,7 @@ mod error {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for PushBytesError {
|
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 {} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue