Browse Source

src/asm_parser.rs: remove unnecessary refs

Rich Lane 8 năm trước cách đây
mục cha
commit
2244209811
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/asm_parser.rs

+ 2 - 2
src/asm_parser.rs

@@ -89,9 +89,9 @@ fn instruction<I>(input: I) -> ParseResult<Instruction, I>
 fn format_info(info: &Info<char, &str>) -> String {
     match *info {
         Info::Token(x) => format!("{:?}", x),
-        Info::Range(ref x) => format!("{:?}", x),
+        Info::Range(x) => format!("{:?}", x),
         Info::Owned(ref x) => x.clone(),
-        Info::Borrowed(ref x) => x.to_string(),
+        Info::Borrowed(x) => x.to_string(),
     }
 }