What changed, and why it matters
This commit is a pure code cleanup that only changes how internal Rust imports are organized. It removes some import lines and combines others, but does not change any program logic, data handling, or behavior. There is no security relevance.
No action needed. This is a non-security refactoring commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit refactors imports in bitcoin/src/blockdata/block.rs. It removes redundant super/crate imports (e.g., super::transaction::Coinbase, super::Weight, crate::pow::{Target, Work}) and consolidates them into existing crate-level import statements. The commit message explicitly states ‘Refactor only, no logic changes.’ The diff contains only import path changes with no functional code modifications.
Changed components
bitcoin/src/blockdata/block.rs (imports only)Inspect captured patch +3 / −7
diff --git a/bitcoin/src/blockdata/block.rs b/bitcoin/src/blockdata/block.rs
index 1ece51ad..44291c3b 100644
--- a/bitcoin/src/blockdata/block.rs
+++ b/bitcoin/src/blockdata/block.rs
@@ -14,17 +14,13 @@ use hashes::{sha256d, HashEngine};
use internals::{compact_size, ToU64};
use io::{BufRead, Write};
-use super::transaction::Coinbase;
-use super::Weight;
-use crate::consensus::encode::WriteExt as _;
-use crate::consensus::{encode, Decodable, Encodable};
+use crate::consensus::encode::{self, Decodable, Encodable, WriteExt as _};
use crate::merkle_tree::{MerkleNode as _, TxMerkleNode, WitnessMerkleNode};
use crate::network::Params;
-use crate::pow::{Target, Work};
use crate::prelude::Vec;
use crate::script::{self, ScriptExt as _};
-use crate::transaction::{Transaction, TransactionExt as _, Wtxid};
-use crate::{internal_macros, BlockTime};
+use crate::transaction::{Coinbase, Transaction, TransactionExt as _, Wtxid};
+use crate::{internal_macros, BlockTime, Target, Weight, Work};
#[rustfmt::skip] // Keep public re-exports separate.
#[doc(inline)]
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.