From: Matt Corallo Date: Thu, 28 Sep 2023 02:45:00 +0000 (+0000) Subject: Use `crate::prelude::*` to load `Vec`, rather than `crate::Vec` X-Git-Tag: v0.0.117~4^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=add71d42a099a84f8ebfaf9d364bff72329fe2bc;p=rust-lightning Use `crate::prelude::*` to load `Vec`, rather than `crate::Vec` This is kinda dumb, but the bindings get confused when referring to `Vec` absolutely in a `use` statement, and there's no reason not to load our prelude everywhere. --- diff --git a/lightning-invoice/src/payment.rs b/lightning-invoice/src/payment.rs index 08be3d54b..024791363 100644 --- a/lightning-invoice/src/payment.rs +++ b/lightning-invoice/src/payment.rs @@ -9,7 +9,8 @@ //! Convenient utilities for paying Lightning invoices. -use crate::{Bolt11Invoice, Vec}; +use crate::Bolt11Invoice; +use crate::prelude::*; use bitcoin_hashes::Hash;