ソースを参照

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(),
     }
 }