mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Fix clippy warnings
This commit is contained in:
committed by
Nicolas Stalder
parent
4892544fdc
commit
2f9ee62a28
@@ -12,8 +12,9 @@ use serde::Deserialize;
|
||||
use trussed::types::GenericArray;
|
||||
|
||||
// iso7816::Status doesn't support serde
|
||||
#[derive(Deserialize, Debug, PartialEq, Clone, Copy)]
|
||||
#[derive(Deserialize, Debug, PartialEq, Clone, Copy, Default)]
|
||||
enum Status {
|
||||
#[default]
|
||||
Success,
|
||||
MoreAvailable(u8),
|
||||
VerificationFailed,
|
||||
@@ -178,12 +179,6 @@ impl TryFrom<u16> for Status {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Status {
|
||||
fn default() -> Status {
|
||||
Status::Success
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct IoTest {
|
||||
|
||||
Reference in New Issue
Block a user