We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a65eb91 commit 913256dCopy full SHA for 913256d
crates/util/src/main.rs
@@ -274,7 +274,7 @@ fn parse<T: FromStr + FromStrRadix>(input: &[&str], idx: usize) -> T {
274
275
let msg = || format!("invalid {} input '{s}'", type_name::<T>());
276
277
- if s.starts_with("0x") {
+ if s.starts_with("0x") || s.starts_with("-0x") {
278
return T::from_str_radix(s, 16).unwrap_or_else(|_| panic!("{}", msg()));
279
}
280
0 commit comments