Merge rust-bitcoin/rust-bitcoin#6837: Automated nightly rustfmt (2026-09-06)
What changed, and why it matters
This is an automated code-formatting commit. It only changes how two import lines and one function are written, with no effect on what the program actually does. There is no security relevance.
No action needed; this is a formatting-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit applies nightly rustfmt to units/src/amount/error.rs. The diff is purely stylistic: it merges two use super::... lines into a braced import and collapses a multi-line is_signed getter into a single line. No logic, types, visibility, or behavior changed.
Changed components
units/src/amount/error.rsInspect captured patch +2 / −5
### units/src/amount/error.rs
@@ -8,8 +8,7 @@ use core::fmt;
use internals::error::InputString;
use internals::write_err;
-use super::INPUT_STRING_LEN_LIMIT;
-use super::SignedAmount;
+use super::{SignedAmount, INPUT_STRING_LEN_LIMIT};
use crate::parse_int::{PrefixedHexError, UnprefixedHexError};
/// Error returned when parsing an amount with denomination fails.
@@ -144,9 +143,7 @@ impl OutOfRangeError {
/// Returns true if the type that was attempted to be parsed is signed (`SignedAmount`).
///
/// This can be used to hint to users to enter non-negative values specifically.
- pub fn is_signed(self) -> bool {
- self.is_signed
- }
+ pub fn is_signed(self) -> bool { self.is_signed }
/// Returns true if the input value was larger than the maximum allowed value.
#[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.