Browse Source

src/asm_parser.rs: wrap long line

Rich Lane 8 years ago
parent
commit
0fe35dc6e9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/asm_parser.rs

+ 3 - 2
src/asm_parser.rs

@@ -45,8 +45,9 @@ fn integer<I>(input: I) -> ParseResult<i64, I>
         Some('-') => -1,
         _ => 1,
     });
-    let hex =
-        string("0x").with(many1(hex_digit())).map(|x: String| i64::from_str_radix(&x, 16).unwrap());
+    let hex = string("0x")
+        .with(many1(hex_digit()))
+        .map(|x: String| i64::from_str_radix(&x, 16).unwrap());
     let dec = many1(digit()).map(|x: String| i64::from_str_radix(&x, 10).unwrap());
     (sign, try(hex).or(dec)).map(|(s, x)| s * x).parse_stream(input)
 }