ソースを参照

Remove no-longer-existing lint

This was recently removed from Rust. With this patch there is no "unknown lint" warning on Rust 1.17 anymore.
Older versions should still work, though maybe with a warning about `single_match`
Jan-Erik Rediger 8 年 前
コミット
79f092d66d
1 ファイル変更0 行追加2 行削除
  1. 0 2
      src/jit.rs

+ 0 - 2
src/jit.rs

@@ -298,7 +298,6 @@ fn emit_load_imm(jit: &mut JitMemory, dst: u8, imm: i64) {
 // Store register src to [dst + offset]
 #[inline]
 fn emit_store(jit: &mut JitMemory, size: OperandSize, src: u8, dst: u8, offset: i32) {
-    #[allow(single_match)]
     match size {
         OperandSize::S16 => emit1(jit, 0x66), // 16-bit override
         _ => {},
@@ -327,7 +326,6 @@ fn emit_store(jit: &mut JitMemory, size: OperandSize, src: u8, dst: u8, offset:
 // Store immediate to [dst + offset]
 #[inline]
 fn emit_store_imm32(jit: &mut JitMemory, size: OperandSize, dst: u8, offset: i32, imm: i32) {
-    #[allow(single_match)]
     match size {
         OperandSize::S16 => emit1(jit, 0x66), // 16-bit override
         _ => {},