@@ -27,7 +27,7 @@ pub fn derive_hash(input: TokenStream) -> TokenStream {
27
27
quote ! {
28
28
impl #impl_generics strong_hash:: StrongHash for #name #type_generics #where_clause {
29
29
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) ) ; *
31
31
}
32
32
}
33
33
}
@@ -48,8 +48,8 @@ pub fn derive_hash(input: TokenStream) -> TokenStream {
48
48
. collect ( ) ;
49
49
quote ! {
50
50
#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) ; ) *
53
53
}
54
54
}
55
55
}
@@ -64,15 +64,15 @@ pub fn derive_hash(input: TokenStream) -> TokenStream {
64
64
. collect ( ) ;
65
65
quote ! {
66
66
#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) ; ) *
69
69
}
70
70
}
71
71
}
72
72
Fields :: Unit => {
73
73
quote ! {
74
74
#name:: #variant_name => {
75
- StrongHash :: strong_hash( #variant_name_str, state) ;
75
+ strong_hash :: StrongHash :: strong_hash( #variant_name_str, state) ;
76
76
}
77
77
}
78
78
}
0 commit comments