What changed, and why it matters
This commit adds a single comment line inside documentation example code to silence a Clippy lint about an unused import. It is purely a code-quality/documentation change and has no security relevance.
No security action required. Treat as normal maintenance/cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff inserts #![allow(unused_imports)] into a rustdoc example block in bitcoin/src/lib.rs. The example intentionally demonstrates a wildcard import (use bitcoin::ext::*), which triggers Clippy’s unused-import warning. The change suppresses that warning so documentation tests build cleanly. No executable code, API behavior, or cryptographic logic is modified.
Changed components
bitcoin/src/lib.rs documentation exampleInspect captured patch +1 / −0
diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs
index 15f5a98c..539c14cd 100644
--- a/bitcoin/src/lib.rs
+++ b/bitcoin/src/lib.rs
@@ -103,6 +103,7 @@ pub mod ext {
//! # Examples
//!
//! ```
+ //! # #![allow(unused_imports)] // Because that is what we are demoing.
//! // Wildcard import all of the extension crates.
//! use bitcoin::ext::*;
//!
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.