← Watch feed
Remove redundant import from sequence.rs
What changed, and why it matters
This commit removes an unused import from a single Rust source file to silence a compiler warning. It does not change any behavior, logic, or security properties of the code.
Recommended action
No action needed; this is a benign cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff deletes NumberOf512Seconds from a use statement in units/src/sequence.rs. The remaining imported items (LockTime, NumberOfBlocks) are still used in the function. This is a pure cleanup change with no functional or security impact.
Changed components
units/src/sequence.rsInspect captured patch +1 / −1
diff --git a/units/src/sequence.rs b/units/src/sequence.rs
index 3910195a..054e3604 100644
--- a/units/src/sequence.rs
+++ b/units/src/sequence.rs
@@ -209,7 +209,7 @@ impl Sequence {
/// Constructs a new [`relative::LockTime`] from this [`Sequence`] number.
#[inline]
pub fn to_relative_lock_time(self) -> Option<relative::LockTime> {
- use crate::locktime::relative::{LockTime, NumberOf512Seconds, NumberOfBlocks};
+ use crate::locktime::relative::{LockTime, NumberOfBlocks};
if !self.is_relative_lock_time() {
return None;
Risk score
Our methodology →Why this scored 15/100
Human-validated context
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
No validated notes yet.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.