mirror of
https://github.com/LordGrimmauld/yubi-oath-rs.git
synced 2025-03-03 21:34:40 +01:00
drop duplicated function
This commit is contained in:
parent
26fc4f1aae
commit
c83a9c6739
1 changed files with 0 additions and 8 deletions
|
@ -188,14 +188,6 @@ impl OathCodeDisplay {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn from_bytes(tlv: Tlv) -> Option<Self> {
|
|
||||||
if Into::<u8>::into(tlv.tag()) == (Tag::TruncatedResponse as u8) && tlv.value().len() == 5 {
|
|
||||||
let display = OathCodeDisplay::new(tlv.value()[..].try_into().unwrap());
|
|
||||||
Some(display)
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn new(bytes: &[u8; 5]) -> Self {
|
pub fn new(bytes: &[u8; 5]) -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|
Loading…
Add table
Reference in a new issue