Skip to content

Commit

Permalink
Fix ApduStatusCode->u16 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
krkhan committed Dec 11, 2020
1 parent f74d1b9 commit 5882a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctap/apdu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ pub enum ApduStatusCode {
}

impl From<ApduStatusCode> for u16 {
fn from(_: ApduStatusCode) -> Self {
0
fn from(code: ApduStatusCode) -> Self {
code as u16
}
}

Expand Down

0 comments on commit 5882a6a

Please sign in to comment.