From 97a4f1c3593fccbe00289e9a315eba5dae679c54 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Thu, 19 Feb 2026 13:46:54 +0000 Subject: [PATCH] Disable dead code warning for whole Rust file --- rust/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/lib.rs b/rust/lib.rs index 533a443..8db620a 100644 --- a/rust/lib.rs +++ b/rust/lib.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use std::ffi::{CStr, c_char}; fn say_hello(name: &str) { @@ -21,7 +23,6 @@ extern "C" fn hello_struct(t: T) -> () { } #[repr(C, u8)] -#[allow(dead_code)] #[derive(Debug)] enum Shape { Circle { radius: f64 },