File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -712,8 +712,9 @@ fn deserialize_seq(
712
712
713
713
if params. has_getter {
714
714
let this_type = & params. this_type ;
715
+ let ( _, ty_generics, _) = params. generics . split_for_impl ( ) ;
715
716
result = quote ! {
716
- _serde:: __private:: Into :: <#this_type>:: into( #result)
717
+ _serde:: __private:: Into :: <#this_type #ty_generics >:: into( #result)
717
718
} ;
718
719
}
719
720
@@ -856,8 +857,9 @@ fn deserialize_newtype_struct(
856
857
let mut result = quote ! ( #type_path( __field0) ) ;
857
858
if params. has_getter {
858
859
let this_type = & params. this_type ;
860
+ let ( _, ty_generics, _) = params. generics . split_for_impl ( ) ;
859
861
result = quote ! {
860
- _serde:: __private:: Into :: <#this_type>:: into( #result)
862
+ _serde:: __private:: Into :: <#this_type #ty_generics >:: into( #result)
861
863
} ;
862
864
}
863
865
@@ -2629,8 +2631,9 @@ fn deserialize_map(
2629
2631
let mut result = quote ! ( #struct_path { #( #result) , * } ) ;
2630
2632
if params. has_getter {
2631
2633
let this_type = & params. this_type ;
2634
+ let ( _, ty_generics, _) = params. generics . split_for_impl ( ) ;
2632
2635
result = quote ! {
2633
- _serde:: __private:: Into :: <#this_type>:: into( #result)
2636
+ _serde:: __private:: Into :: <#this_type #ty_generics >:: into( #result)
2634
2637
} ;
2635
2638
}
2636
2639
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ mod remote {
80
80
}
81
81
82
82
impl < T > StructGeneric < T > {
83
+ #[ allow( dead_code) ]
83
84
pub fn get_value ( & self ) -> & T {
84
85
& self . value
85
86
}
You can’t perform that action at this time.
0 commit comments