diff --git a/src/entropy.rs b/src/entropy.rs index eb94cfb49..2f7faa1b4 100644 --- a/src/entropy.rs +++ b/src/entropy.rs @@ -9,7 +9,8 @@ use std::fmt; -use bip39::{rand::rngs::OsRng, Language, Mnemonic}; +use bip39::rand::rngs::OsRng; +use bip39::{Language, Mnemonic}; use crate::config::WALLET_KEYS_SEED_LEN; use crate::io; diff --git a/src/event.rs b/src/event.rs index 36c1d0589..8e6a98dc9 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1225,8 +1225,7 @@ where ); log_info!( self.logger, - "Successfully sent payment of {}msat{} from \ - payment hash {:?} with preimage {:?}", + "Successfully sent payment of {}msat{} with payment hash {}", amount_msat, if let Some(fee) = fee_paid_msat { format!(" (fee {} msat)", fee) @@ -1234,7 +1233,6 @@ where "".to_string() }, hex_utils::to_string(&payment_hash.0), - hex_utils::to_string(&payment_preimage.0) ); }); let event = Event::PaymentSuccessful {