Properly mock 'Key::try_generate()'.

This commit is contained in:
Sergio Benitez 2020-06-07 04:02:18 -07:00
parent f7b1089b49
commit 55d2b2bfb6

View File

@ -21,6 +21,7 @@ mod key {
impl Key {
pub fn generate() -> Self { Key }
pub fn try_generate() -> Option<Self> { Some(Key) }
pub fn derive_from(_bytes: &[u8]) -> Self { Key }
}
}