I have been struggling define aliases for primitive types.
#[allow(non_camel_case_types)]
pub type i32x2 = [ i32 ; 2 ];
pub type f64x2 = [ f64 ; 2 ];
pub type f64x4 = [ f64 ; 4 ];
Is there a way to disable a warning for a whole file?
I have been struggling define aliases for primitive types.
#[allow(non_camel_case_types)]
pub type i32x2 = [ i32 ; 2 ];
pub type f64x2 = [ f64 ; 2 ];
pub type f64x4 = [ f64 ; 4 ];
Is there a way to disable a warning for a whole file?
You need to add a !
for it to apply to the whole file instead of just the next statement:
#![allow(non_camel_case_types)]
That works, man. Thank you!
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.