allow unreachable in default protocol return
This commit is contained in:
parent
2337c0497c
commit
e391d3f63f
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ macro_rules! build_parser_type_enum {
|
|||
// add code here
|
||||
fn default() -> Self {
|
||||
$(
|
||||
#[allow(unreachable_code)]
|
||||
#[cfg(feature = $feat)]
|
||||
return ParserTypes::$name(<$t>::default());
|
||||
)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue