Skip to content

Commit

Permalink
Add Default impl for MessengerUtilities to appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalturtle committed Dec 9, 2023
1 parent 0aba17b commit 2530ec6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/onion_messenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ impl MessengerUtilities {
}
}

impl Default for MessengerUtilities {
fn default() -> Self {
Self::new()
}
}

impl EntropySource for MessengerUtilities {
// TODO: surface LDK's EntropySource and use instead.
fn get_secure_random_bytes(&self) -> [u8; 32] {
Expand Down

0 comments on commit 2530ec6

Please sign in to comment.