Rustfmt fixes

This commit is contained in:
Morgan Phillips
2016-08-29 13:17:08 -07:00
parent adde184042
commit 26cd358bd4
5 changed files with 22 additions and 5 deletions

View File

@@ -60,7 +60,11 @@ 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.