When generating an error code, we should allow dead code here
This commit is contained in:
parent
144a8bf897
commit
95b77d7c92
1 changed files with 2 additions and 0 deletions
|
@ -74,10 +74,12 @@ macro_rules! generate_custom_error_types {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn err_type(&self) -> $kindname {
|
pub fn err_type(&self) -> $kindname {
|
||||||
self.err_type
|
self.err_type
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn with_custom_data(mut self, custom: $customMemberTypeName) -> $name {
|
pub fn with_custom_data(mut self, custom: $customMemberTypeName) -> $name {
|
||||||
self.custom_data = Some(custom);
|
self.custom_data = Some(custom);
|
||||||
self
|
self
|
||||||
|
|
Loading…
Reference in a new issue