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 },