Skip to content

Commit cfeb60c

Browse files
JakobDegenfacebook-github-bot
authored andcommitted
strong hash: Fully qualified
Summary: Don't require imports Reviewed By: IanChilds Differential Revision: D73628470 fbshipit-source-id: a4578a694ed473687e445cec2271391b9f48139e
1 parent 47e5cef commit cfeb60c

File tree

1 file changed

+6
-6
lines changed
  • gazebo/strong_hash_derive/src

1 file changed

+6
-6
lines changed

gazebo/strong_hash_derive/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn derive_hash(input: TokenStream) -> TokenStream {
2727
quote! {
2828
impl #impl_generics strong_hash::StrongHash for #name #type_generics #where_clause {
2929
fn strong_hash<H: ::std::hash::Hasher>(&self, state: &mut H) {
30-
#(StrongHash::strong_hash(&self.#members, state));*
30+
#(strong_hash::StrongHash::strong_hash(&self.#members, state));*
3131
}
3232
}
3333
}
@@ -48,8 +48,8 @@ pub fn derive_hash(input: TokenStream) -> TokenStream {
4848
.collect();
4949
quote! {
5050
#name::#variant_name { #(#field_names),* } => {
51-
StrongHash::strong_hash(#variant_name_str, state);
52-
#(StrongHash::strong_hash(#field_names, state);)*
51+
strong_hash::StrongHash::strong_hash(#variant_name_str, state);
52+
#(strong_hash::StrongHash::strong_hash(#field_names, state);)*
5353
}
5454
}
5555
}
@@ -64,15 +64,15 @@ pub fn derive_hash(input: TokenStream) -> TokenStream {
6464
.collect();
6565
quote! {
6666
#name::#variant_name(#(#vars),*) => {
67-
StrongHash::strong_hash(#variant_name_str, state);
68-
#(StrongHash::strong_hash(#vars, state);)*
67+
strong_hash::StrongHash::strong_hash(#variant_name_str, state);
68+
#(strong_hash::StrongHash::strong_hash(#vars, state);)*
6969
}
7070
}
7171
}
7272
Fields::Unit => {
7373
quote! {
7474
#name::#variant_name => {
75-
StrongHash::strong_hash(#variant_name_str, state);
75+
strong_hash::StrongHash::strong_hash(#variant_name_str, state);
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)