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};
|
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 },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user