Skip to content

Commit

Permalink
Remove unused TryFrom implementation for YkGetHmac
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Oct 21, 2024
1 parent b134a45 commit 7e41e0f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ pub struct YkGetHmac<'l> {
pub slot_cmd: Option<YkCommand>,
}

impl<'l, const C: usize> TryFrom<&'l Data<C>> for YkGetHmac<'l> {
type Error = Status;
fn try_from(data: &'l Data<C>) -> Result<Self, Self::Error> {
Ok(Self {
challenge: data,
slot_cmd: None,
})
}
}

impl<'l> YkGetHmac<'l> {
pub fn get_credential_label(&self) -> Result<&[u8], Status> {
Ok(match self.slot_cmd.ok_or(Status::IncorrectDataParameter)? {
Expand Down

0 comments on commit 7e41e0f

Please sign in to comment.