From 150067fa680bb10deaea7f531c93ef62d0ddba80 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 2 Oct 2024 19:05:29 +0000 Subject: [PATCH] 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`. --- lightning/src/crypto/chacha20.rs | 2 -- lightning/src/crypto/poly1305.rs | 2 -- 2 files changed, 4 deletions(-) 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], -- 2.39.5