diff --git a/src/flutclient.rs b/src/flutclient.rs index fcbb0f2..f8a771a 100644 --- a/src/flutclient.rs +++ b/src/flutclient.rs @@ -37,14 +37,14 @@ macro_rules! build_parser_type_enum { impl ParserTypes { pub fn get_status() -> Vec { - let mut protos = Vec::new(); + vec![ $( #[cfg(feature = $feat)] - protos.push(ProtocolStatus::Enabled($feat)); + ProtocolStatus::Enabled($feat), #[cfg(not(feature = $feat))] - protos.push(ProtocolStatus::Disabled($feat)); + ProtocolStatus::Disabled($feat), )* - protos + ] } pub fn announce() {