Fix clippy warnings

This commit is contained in:
Sosthène Guédon
2025-03-06 09:55:34 +01:00
committed by sosthene-nitrokey
parent ca9b10f9c9
commit b8a496f67c
6 changed files with 80 additions and 43 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ where
}
}
impl<'a, T: Client> LoadedAuthenticator<'a, T> {
impl<T: Client> LoadedAuthenticator<'_, T> {
pub fn yubico_set_administration_key<const R: usize>(
&mut self,
data: &[u8],
+2 -2
View File
@@ -12,13 +12,13 @@ impl<'v, const R: usize> Deref for Reply<'v, R> {
}
}
impl<'v, const R: usize> DerefMut for Reply<'v, R> {
impl<const R: usize> DerefMut for Reply<'_, R> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl<'v, const R: usize> Reply<'v, R> {
impl<const R: usize> Reply<'_, R> {
/// Extend the reply and return an error otherwise
/// The MoreAvailable and GET RESPONSE mechanisms are handled by adpu_dispatch
///
+1 -1
View File
@@ -305,7 +305,7 @@ impl Drop for UseValidKey {
}
}
impl<'t> LoadedState<'t> {
impl LoadedState<'_> {
pub fn key_exists(
&self,
client: &mut impl crate::Client,