units: add `too_many_lines` clippy whitelist to `parse_signed_to_satoshi`
What changed, and why it matters
This commit adds a single annotation telling the Rust linter (clippy) to ignore a 'function is too long' warning on an internal helper function. It does not change any executable code, behavior, or data handling. There is no security relevance.
No action needed; the change is not security-related.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds #[allow(clippy::too_many_lines)] to parse_signed_to_satoshi in units/src/amount/mod.rs. This is purely a lint-suppression change to keep automated formatting pull requests passing CI. No logic, parsing rules, bounds checks, or error handling were modified.
Changed components
units/src/amount/mod.rsInspect captured patch +1 / −0
diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs
index f1778391..e640e6f3 100644
--- a/units/src/amount/mod.rs
+++ b/units/src/amount/mod.rs
@@ -209,6 +209,7 @@ const INPUT_STRING_LEN_LIMIT: usize = 50;
/// [`bool`] indicator for a negative amount.
///
/// The `bool` is only needed to distinguish -0 from 0.
+#[allow(clippy::too_many_lines)]
fn parse_signed_to_satoshi(
mut s: &str,
denom: Denomination,
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.