Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust field is never read remove warning

//Place #[allow(dead_code)] above the line that is giving the warning

#[allow(dead_code)]
struct GivingWarning;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rust #field #read #remove #warning
ADD COMMENT
Topic
Name
4+1 =