← Watch feed
Adjust Display string for UnprefixedHexError
What changed, and why it matters
This commit fixes a typo in an error message displayed to users. The message 'hex string is contains prefix' was corrected to 'hex string contains prefix'. It has no security relevance.
Recommended action
No security action needed; this is a cosmetic string fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A one-word change in the Display implementation for UnprefixedHexError::ContainsPrefix removes an extra ‘is’ from the human-readable error string. The underlying error type, its variants, and all parsing logic are unchanged.
Changed components
units/src/parse_int.rsInspect captured patch +1 / −1
diff --git a/units/src/parse_int.rs b/units/src/parse_int.rs
index fe859b81..aa5fa0a3 100644
--- a/units/src/parse_int.rs
+++ b/units/src/parse_int.rs
@@ -523,7 +523,7 @@ pub mod error {
use UnprefixedHexErrorInner as E;
match self.0 {
- E::ContainsPrefix(ref e) => write_err!(f, "hex string is contains prefix"; e),
+ E::ContainsPrefix(ref e) => write_err!(f, "hex string contains prefix"; e),
E::ParseInt(ref e) => write_err!(f, "hex string parse int"; e),
}
}
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.