mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-16 13:42:05 +00:00
Properly mock 'Key::try_generate()'.
This commit is contained in:
parent
f7b1089b49
commit
55d2b2bfb6
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user