diff --git a/scarb/src/compiler/plugin/proc_macro/host.rs b/scarb/src/compiler/plugin/proc_macro/host.rs index 0358d277d..0a39f8f1e 100644 --- a/scarb/src/compiler/plugin/proc_macro/host.rs +++ b/scarb/src/compiler/plugin/proc_macro/host.rs @@ -1027,8 +1027,8 @@ enum AttrExpansionFound { impl AttrExpansionFound { pub fn as_name(&self) -> Option { match self { - AttrExpansionFound::Some { expansion, .. } => Some(expansion.expansion.name.clone()), - AttrExpansionFound::Last { expansion, .. } => Some(expansion.expansion.name.clone()), + AttrExpansionFound::Some { expansion, .. } + | AttrExpansionFound::Last { expansion, .. } => Some(expansion.expansion.name.clone()), AttrExpansionFound::None => None, } }