Disable dead code warning for whole Rust file

This commit is contained in:
George Thomas 2026-02-19 13:46:54 +00:00
parent d8c12b5418
commit 97a4f1c359

View File

@ -1,3 +1,5 @@
#![allow(dead_code)]
use std::ffi::{CStr, c_char}; use std::ffi::{CStr, c_char};
fn say_hello(name: &str) { fn say_hello(name: &str) {
@ -21,7 +23,6 @@ extern "C" fn hello_struct(t: T) -> () {
} }
#[repr(C, u8)] #[repr(C, u8)]
#[allow(dead_code)]
#[derive(Debug)] #[derive(Debug)]
enum Shape { enum Shape {
Circle { radius: f64 }, Circle { radius: f64 },