Use utility methods to construct `HashMap`s and `HashSet`s
[rust-lightning] / lightning / src / events / bump_transaction.rs
index 1b019ba349e0ae8687a190b92ebd144fe164f6f9..0676fef14b5bd53d33b164147fdf9b873a0e4f0a 100644 (file)
@@ -391,7 +391,7 @@ where
        /// Returns a new instance backed by the given [`WalletSource`] that serves as an implementation
        /// of [`CoinSelectionSource`].
        pub fn new(source: W, logger: L) -> Self {
-               Self { source, logger, locked_utxos: Mutex::new(HashMap::new()) }
+               Self { source, logger, locked_utxos: Mutex::new(new_hash_map()) }
        }
 
        /// Performs coin selection on the set of UTXOs obtained from