Skip to content

Commit

Permalink
Add Ident case (solana-labs#24390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg authored and jeffwashington committed Jun 28, 2022
1 parent bfbdeb7 commit 13b3800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ impl Parse for RespanInput {
respan_using: ident.span(),
})
}
TokenTree::Ident(i) => Ok(RespanInput {
to_respan,
respan_using: i.span(),
}),
val => Err(syn::Error::new_spanned(
val,
"expected None-delimited group",
Expand Down

0 comments on commit 13b3800

Please sign in to comment.