chacha20_poly1305: Move extern crate statement
What changed, and why it matters
This commit simply reorders two blocks of code in a single Rust source file. It moves an `extern crate test;` statement to sit with other `extern crate` statements, and moves a `mod benches;` module declaration below it. The commit message explicitly states this is an internal-only change with no logic change, and the diff confirms no executable code was altered.
No action required. This is a non-security, non-functional refactoring change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
In chacha20_poly1305/src/lib.rs, the #[cfg(bench)] extern crate test; statement was relocated to be grouped with the other extern crate declarations (alloc, std). The #[cfg(bench)] mod benches; declaration was moved after it. No cryptographic logic, API surface, conditional compilation behavior, or dependency usage changed. This is a pure code-style/refactoring commit.
Changed components
chacha20_poly1305/src/lib.rsInspect captured patch +3 / −2
diff --git a/chacha20_poly1305/src/lib.rs b/chacha20_poly1305/src/lib.rs
index e8632f51..f8e56505 100644
--- a/chacha20_poly1305/src/lib.rs
+++ b/chacha20_poly1305/src/lib.rs
@@ -23,10 +23,11 @@ extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
-#[cfg(bench)]
-mod benches;
#[cfg(bench)]
extern crate test;
+
+#[cfg(bench)]
+mod benches;
pub mod chacha20;
pub mod poly1305;
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.