-
I'm writing a attribute macro used on struct: #[mc(key = "this is a literal string")]
struct Foo; The receiver type: #[derive(Debug, FromMeta)]
struct Args {
value: syn::Expr,
} The |
Beta Was this translation helpful? Give feedback.
Answered by
TedDriggs
Apr 23, 2024
Replies: 1 comment
-
This is likely running into #229, so you should use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TedDriggs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is likely running into #229, so you should use
util::parse_expr::preserve_str_literal
to handle it.