Quellcode durchsuchen

src/jit: Remove linter command unknown to cargo

Running "cargo check" on the package raises complaints about this linter
command. Let's remove it, as it seems that cargo-clippy does no longer
complain without it.
Quentin Monnet vor 2 Jahren
Ursprung
Commit
c4ab4decb1
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  1. 0 1
      src/jit.rs

+ 0 - 1
src/jit.rs

@@ -83,7 +83,6 @@ macro_rules! emit_bytes {
         let size = mem::size_of::<$t>() as usize;
         assert!($jit.offset + size <= $jit.contents.len());
         unsafe {
-            #[allow(cast_ptr_alignment)]
             let mut ptr = $jit.contents.as_ptr().add($jit.offset) as *mut $t;
             *ptr = $data as $t;
         }