Skip to content

Commit

Permalink
Update struct-patch-derive/src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto authored Aug 25, 2023
1 parent 6397f9b commit 5e8c6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion struct-patch-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn derive_patch(item: TokenStream) -> TokenStream {
}) => {
if let Lit::Str(l) = &lit.lit {
let ident = Some(Ident::new(
l.value().to_string().trim_matches('"'),
l.value().trim_matches('"'),
Span::call_site(),
));
(quote!(Option<#ident>), true)
Expand Down

0 comments on commit 5e8c6cf

Please sign in to comment.