]> git.bitcoin.ninja Git - rust-lightning/commit
Allow(unused_imports) on prelude imports
authorMatt Corallo <git@bluematt.me>
Thu, 21 Mar 2024 15:18:22 +0000 (15:18 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 5 Apr 2024 09:05:26 +0000 (09:05 +0000)
commitcd327089a8c719844b776601e9ccd0728777ac28
tree42e18a7e30cb7a429f35899bc672a971c43a1f24
parentfb3a86f498f971dc01fdd58b166031793ff1bc1a
Allow(unused_imports) on prelude imports

New rustc now warns on duplicate imports when one of the imports
is from a wildcard import or the default prelude. Thus, because we
often don't actually use the imports from our prelude (as they
exist to duplicate the `std` default prelude), we have to mark most
of our `crate::prelude` imports with `#[allow(unused_imports)]`,
which we do here.
31 files changed:
lightning/src/blinded_path/message.rs
lightning/src/blinded_path/payment.rs
lightning/src/blinded_path/utils.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/mod.rs
lightning/src/chain/package.rs
lightning/src/events/mod.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/features.rs
lightning/src/ln/mod.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_payment.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_error.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/payer.rs
lightning/src/offers/refund.rs
lightning/src/routing/test_utils.rs
lightning/src/sign/ecdsa.rs
lightning/src/util/base32.rs
lightning/src/util/invoice.rs
lightning/src/util/message_signing.rs
lightning/src/util/ser_macros.rs
lightning/src/util/test_channel_signer.rs
lightning/src/util/transaction_utils.rs
lightning/src/util/wakers.rs