]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Specify imports manually in `types::features::sealed` 2024-08-bindings-imports-suck
authorMatt Corallo <git@bluematt.me>
Sun, 1 Sep 2024 01:08:38 +0000 (01:08 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 1 Sep 2024 01:08:38 +0000 (01:08 +0000)
There's not a lot of reason to do this, but sadly the bindings
don't currently resolve wildcard imports at all, and I don't want
to deal with implementing it right now.

lightning-types/src/features.rs

index 5d64a33b37df40e6be69708d393d325bf6b3216a..7ce87e0263ec30cb71f1eeb699d80a273308b581 100644 (file)
@@ -88,7 +88,9 @@ use alloc::vec::Vec;
 use bech32::{u5, Base32Len, FromBase32, ToBase32, WriteBase32};
 
 mod sealed {
-       use super::*;
+       use super::Features;
+
+       use alloc::vec::Vec;
 
        /// The context in which [`Features`] are applicable. Defines which features are known to the
        /// implementation, though specification of them as required or optional is up to the code