fix allow unreachable code directive

This commit is contained in:
Noa Aarts 2024-12-11 00:30:05 +01:00
parent 8969a9e6d5
commit b8c01befde
Signed by: noa
GPG key ID: 1850932741EFF672

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