Skip to content

Commit 7bed90c

Browse files
committed
Strip dots even for default expr
1 parent 4abcf03 commit 7bed90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ pub(crate) fn parse_expr_str(
151151
match (comma, expression_string) {
152152
(Ok(_), Ok(expr)) => Ok(syn::LitStr::new(&strip_dots(&expr.value()), name_span)),
153153
(Ok(_), Err(e)) => Err(e),
154-
(Err(_), _) => Ok(syn::LitStr::new(name, name_span)),
154+
(Err(_), _) => Ok(syn::LitStr::new(&strip_dots(&name), name_span)),
155155
}
156156
}

0 commit comments

Comments
 (0)