Upgrade to rustfmt 0.6.0
This commit is contained in:
@@ -56,11 +56,7 @@ impl FromStr for Imm64 {
|
||||
let mut value: u64 = 0;
|
||||
let mut digits = 0;
|
||||
let negative = s.starts_with('-');
|
||||
let s2 = if negative {
|
||||
&s[1..]
|
||||
} else {
|
||||
s
|
||||
};
|
||||
let s2 = if negative { &s[1..] } else { s };
|
||||
|
||||
if s2.starts_with("0x") {
|
||||
// Hexadecimal.
|
||||
|
||||
Reference in New Issue
Block a user