From d7c95164b5a4997985e04e31f3840760d80fb6a1 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Tue, 3 Sep 2024 01:05:53 +0200 Subject: [PATCH] Rust: deny `arithmetic_overflow` and `overflowing_literals` --- .../main/scala/io/kaitai/struct/languages/RustCompiler.scala | 2 -- 1 file changed, 2 deletions(-) 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;")