allow unreachable in default protocol return

This commit is contained in:
Noa Aarts 2024-12-10 16:04:18 +01:00
parent 2337c0497c
commit e391d3f63f
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -28,6 +28,7 @@ macro_rules! build_parser_type_enum {
// add code here // add code here
fn default() -> Self { fn default() -> Self {
$( $(
#[allow(unreachable_code)]
#[cfg(feature = $feat)] #[cfg(feature = $feat)]
return ParserTypes::$name(<$t>::default()); return ParserTypes::$name(<$t>::default());
)* )*