fix allow unreachable code directive
This commit is contained in:
parent
8969a9e6d5
commit
b8c01befde
1 changed files with 1 additions and 1 deletions
|
|
@ -26,10 +26,10 @@ macro_rules! build_parser_type_enum {
|
|||
|
||||
impl std::default::Default for ParserTypes {
|
||||
// add code here
|
||||
#[allow(unreachable_code)]
|
||||
fn default() -> Self {
|
||||
$(
|
||||
#[cfg(feature = $feat)]
|
||||
#[allow(unreachable_code)]
|
||||
return ParserTypes::$name(<$t>::default());
|
||||
)*
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue