Use prelude by universal import, rather than single import
authorMatt Corallo <git@bluematt.me>
Sat, 11 May 2024 15:55:36 +0000 (15:55 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 18:55:22 +0000 (18:55 +0000)
This avoids the bindings trying to figure out what a
`lightning::prelude::Vec` is rather than matching it as a `Vec`.

lightning/src/util/sweep.rs

index 5135549689ca52731d2f9212278fd77c488f9068..dd26a8ef844c1a1d4a7bb8c4351481df6d5fe415 100644 (file)
@@ -14,7 +14,7 @@ use crate::chain::{self, BestBlock, Confirm, Filter, Listen, WatchedOutput};
 use crate::io;
 use crate::ln::msgs::DecodeError;
 use crate::ln::types::ChannelId;
-use crate::prelude::Vec;
+use crate::prelude::*;
 use crate::sign::{ChangeDestinationSource, OutputSpender, SpendableOutputDescriptor};
 use crate::sync::Mutex;
 use crate::util::logger::Logger;