From: Matt Corallo Date: Wed, 2 Oct 2024 19:05:29 +0000 (+0000) Subject: Drop `lightning`-specific code in `lightning::crypto` X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=150067fa680bb10deaea7f531c93ef62d0ddba80;p=rust-lightning Drop `lightning`-specific code in `lightning::crypto` In a few commits, we'll reuse the `chacha20.rs` and `poly1305.rs` files in a new crate (via symlink). In order to do so, we need to first avoid any references to things in the `lightning` crate, which we do here by dropping references to `crate::prelude`. --- diff --git a/lightning/src/crypto/chacha20.rs b/lightning/src/crypto/chacha20.rs index cbe3e4e10..a4df620df 100644 --- a/lightning/src/crypto/chacha20.rs +++ b/lightning/src/crypto/chacha20.rs @@ -342,8 +342,6 @@ pub use self::fuzzy_chacha::ChaCha20; mod test { use core::iter::repeat; - use crate::prelude::*; - use super::ChaCha20; #[test] diff --git a/lightning/src/crypto/poly1305.rs b/lightning/src/crypto/poly1305.rs index 6ac1c6c96..c85a3b746 100644 --- a/lightning/src/crypto/poly1305.rs +++ b/lightning/src/crypto/poly1305.rs @@ -9,8 +9,6 @@ use core::cmp::min; -use crate::prelude::*; - #[derive(Clone, Copy)] pub struct Poly1305 { r: [u32; 5],