diff --git a/shared/src/main/scala/io/kaitai/struct/languages/RustCompiler.scala b/shared/src/main/scala/io/kaitai/struct/languages/RustCompiler.scala index d3f5d5cf8..b0e885e7b 100644 --- a/shared/src/main/scala/io/kaitai/struct/languages/RustCompiler.scala +++ b/shared/src/main/scala/io/kaitai/struct/languages/RustCompiler.scala @@ -50,8 +50,6 @@ class RustCompiler(typeProvider: ClassTypeProvider, config: RuntimeConfig) outHeader.puts("#![allow(non_camel_case_types)]") outHeader.puts("#![allow(irrefutable_let_patterns)]") outHeader.puts("#![allow(unused_comparisons)]") - outHeader.puts("#![allow(arithmetic_overflow)]") - outHeader.puts("#![allow(overflowing_literals)]") outHeader.puts outHeader.puts("extern crate kaitai;")