-
Notifications
You must be signed in to change notification settings - Fork 946
Labels
Description
Hi,
This macro makes rustfmt
nightly crash:
macro_rules! impl_routes_and_health {
($($feature:literal, $variant:ident),* $(,)?) => {
impl EitherState {
pub(crate) fn service_name(&self) -> &'static str {
match self {
$(
#[cfg(feature = $feature)]
Self::$variant(s) => s.service_name(),// BuildService::service_name(s.clone()),
)*
}
}
}
};
}
If i remove the trailing comment // BuildService::service_name(s.clone()),
, it works as expected.