瀏覽代碼

src/asm_parser.rs: remove unnecessary refs

Rich Lane 8 年之前
父節點
當前提交
2244209811
共有 1 個文件被更改,包括 2 次插入2 次删除
  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(),
     }
 }