Skip to content

Commit

Permalink
utils: add Default for MessengerUtilities to satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalturtle committed Jan 20, 2024
1 parent 9af927d commit 00339a2
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 @@ -64,6 +64,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 00339a2

Please sign in to comment.