Explorar o código

src/asm_parser.rs: wrap long line

Rich Lane %!s(int64=8) %!d(string=hai) anos
pai
achega
0fe35dc6e9
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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)
 }