mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
apps/vault: Implement From instead of Into
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
parent
6163414dd1
commit
01bc25c55d
1 changed files with 3 additions and 4 deletions
|
|
@ -18,7 +18,6 @@ use super::status_code::Ctap2StatusCode;
|
||||||
use super::CtapState;
|
use super::CtapState;
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
use arrayref::array_ref;
|
use arrayref::array_ref;
|
||||||
use core::convert::Into;
|
|
||||||
use core::convert::TryFrom;
|
use core::convert::TryFrom;
|
||||||
use ctap_crypto::rng256::Rng256;
|
use ctap_crypto::rng256::Rng256;
|
||||||
use crate::shims::ClockValue;
|
use crate::shims::ClockValue;
|
||||||
|
|
@ -51,9 +50,9 @@ impl TryFrom<u8> for Ctap1Flags {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Into<u8> for Ctap1Flags {
|
impl From<Ctap1Flags> for u8 {
|
||||||
fn into(self) -> u8 {
|
fn from(flags: Ctap1Flags) -> u8 {
|
||||||
self as u8
|
flags as u8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue