Disable dead code warning for whole Rust file
This commit is contained in:
parent
d8c12b5418
commit
97a4f1c359
@ -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 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user