When generating an error code, we should allow dead code here

This commit is contained in:
Matthias Beyer 2016-09-06 14:24:06 +02:00
parent 144a8bf897
commit 95b77d7c92

View file

@ -74,10 +74,12 @@ macro_rules! generate_custom_error_types {
}
}
#[allow(dead_code)]
pub fn err_type(&self) -> $kindname {
self.err_type
}
#[allow(dead_code)]
pub fn with_custom_data(mut self, custom: $customMemberTypeName) -> $name {
self.custom_data = Some(custom);
self