feat: optimize
This commit is contained in:
@@ -19,6 +19,12 @@ impl Drop for SecVec {
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<[u8]> for SecVec {
|
||||
fn as_ref(&self) -> &[u8] {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
pub fn read_pin(pin: &Option<String>) -> String {
|
||||
match pin {
|
||||
Some(pin) => pin.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user