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:
Noa Aarts 2024-12-11 20:01:38 +01:00 committed by GitHub
commit e6ce4339d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());
)*
}