Skip to content

Commit

Permalink
Drop lightning-specific code in lightning::crypto
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
TheBlueMatt committed Oct 2, 2024
1 parent d49a08a commit 150067f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lightning/src/crypto/chacha20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,6 @@ pub use self::fuzzy_chacha::ChaCha20;
mod test {
use core::iter::repeat;

use crate::prelude::*;

use super::ChaCha20;

#[test]
Expand Down
2 changes: 0 additions & 2 deletions lightning/src/crypto/poly1305.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

use core::cmp::min;

use crate::prelude::*;

#[derive(Clone, Copy)]
pub struct Poly1305 {
r: [u32; 5],
Expand Down

0 comments on commit 150067f

Please sign in to comment.