]> git.bitcoin.ninja Git - rust-lightning/commit
Use `crate::prelude::*` rather than specific imports
authorMatt Corallo <git@bluematt.me>
Thu, 21 Mar 2024 14:27:05 +0000 (14:27 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 5 Apr 2024 09:05:54 +0000 (09:05 +0000)
commitae0d825d89ca0ac2489737d1b413e778650b093c
treeff307fa0e99c9c93730ca66158933babbb906612
parent061d396b074a8d8b2f7d83c316b158749e6dcdb5
Use `crate::prelude::*` rather than specific imports

New rustc beta now warns on duplicate imports when one of the
imports is from a wildcard import or the default prelude. Thus, to
avoid this here we prefer to always use `crate::prelude::*` and let
it decide if we actually need to import anything.
44 files changed:
lightning-invoice/src/de.rs
lightning-invoice/src/utils.rs
lightning/src/blinded_path/payment.rs
lightning/src/chain/chaininterface.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/package.rs
lightning/src/crypto/chacha20.rs
lightning/src/crypto/poly1305.rs
lightning/src/lib.rs
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/inbound_payment.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reload_tests.rs
lightning/src/ln/script.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/ln/wire.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/merkle.rs
lightning/src/offers/offer.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs
lightning/src/offers/signer.rs
lightning/src/offers/test_utils.rs
lightning/src/onion_message/offers.rs
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/routing/utxo.rs
lightning/src/sign/mod.rs
lightning/src/util/errors.rs
lightning/src/util/indexed_map.rs
lightning/src/util/persist.rs
lightning/src/util/scid_utils.rs
lightning/src/util/ser.rs
lightning/src/util/string.rs
lightning/src/util/test_utils.rs
lightning/src/util/transaction_utils.rs
lightning/src/util/wakers.rs