Skip to content

Commit 150067f

Browse files
committed
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`.
1 parent d49a08a commit 150067f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lightning/src/crypto/chacha20.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ pub use self::fuzzy_chacha::ChaCha20;
342342
mod test {
343343
use core::iter::repeat;
344344

345-
use crate::prelude::*;
346-
347345
use super::ChaCha20;
348346

349347
#[test]

lightning/src/crypto/poly1305.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
use core::cmp::min;
1111

12-
use crate::prelude::*;
13-
1412
#[derive(Clone, Copy)]
1513
pub struct Poly1305 {
1614
r: [u32; 5],

0 commit comments

Comments
 (0)