Skip to content

Commit

Permalink
use core instead of std in a couple places. (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice authored Feb 5, 2022
1 parent 260322f commit c676655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion strum_macros/src/macros/enum_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
let params = match &variant.fields {
Unit => quote! {},
Unnamed(fields) => {
let defaults = ::std::iter::repeat(quote!(::core::default::Default::default()))
let defaults = ::core::iter::repeat(quote!(::core::default::Default::default()))
.take(fields.unnamed.len());
quote! { (#(#defaults),*) }
}
Expand Down
2 changes: 1 addition & 1 deletion strum_macros/src/macros/from_repr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn from_repr_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
Unit => quote! {},
Unnamed(fields) => {
has_additional_data = true;
let defaults = ::std::iter::repeat(quote!(::core::default::Default::default()))
let defaults = ::core::iter::repeat(quote!(::core::default::Default::default()))
.take(fields.unnamed.len());
quote! { (#(#defaults),*) }
}
Expand Down

0 comments on commit c676655

Please sign in to comment.