Skip to content

Commit

Permalink
Fix use of std without :: in derive macro
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Oct 14, 2024
1 parent 6de63c4 commit 3a8d317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dummy_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fn expose_field(f: &DummyField) -> proc_macro2::TokenStream {
if let Some(ref from) = f.from {
let from_ty = syn::parse_str::<syn::Type>(from).unwrap();
quote! {
std::convert::Into::<#field_ty>::into(::fake::Fake::fake_with_rng::<#from_ty, _>(&(#faker), rng))
::std::convert::Into::<#field_ty>::into(::fake::Fake::fake_with_rng::<#from_ty, _>(&(#faker), rng))
}
} else if let Some(ref wrapper) = f.wrapper {
let wrapper_ty = syn::parse_str::<syn::Type>(wrapper).unwrap();
Expand Down

0 comments on commit 3a8d317

Please sign in to comment.