Skip to content

Commit

Permalink
Update scarb/src/compiler/plugin/proc_macro/host.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Kowalski <mateusz.kowalski@swmansion.com>
Signed-off-by: maciektr <mtratnowiecki@gmail.com>
  • Loading branch information
maciektr and wawel37 authored Nov 28, 2024
1 parent 4cbff08 commit 2bec9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scarb/src/compiler/plugin/proc_macro/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,8 @@ enum AttrExpansionFound {
impl AttrExpansionFound {
pub fn as_name(&self) -> Option<SmolStr> {
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,
}
}
Expand Down

0 comments on commit 2bec9d3

Please sign in to comment.