fix allow unreachable code directive (#61)
The `#[allow(unreachable_code)]` was in the wrong spot, move it to fix this
This commit is contained in:
commit
e6ce4339d7
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 {
|
impl std::default::Default for ParserTypes {
|
||||||
// add code here
|
// add code here
|
||||||
|
#[allow(unreachable_code)]
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
$(
|
$(
|
||||||
#[cfg(feature = $feat)]
|
#[cfg(feature = $feat)]
|
||||||
#[allow(unreachable_code)]
|
|
||||||
return ParserTypes::$name(<$t>::default());
|
return ParserTypes::$name(<$t>::default());
|
||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue