We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f69251 + 106da49 commit bb58726Copy full SHA for bb58726
serde_derive/src/ser.rs
@@ -1235,7 +1235,7 @@ fn wrap_serialize_with(
1235
#serialize_with(#(#self_var.values.#field_access, )* #serializer_var)
1236
};
1237
1238
- quote!({
+ quote!(&{
1239
#[doc(hidden)]
1240
struct __SerializeWith #wrapper_impl_generics #where_clause {
1241
values: (#(&'__a #field_tys, )*),
@@ -1252,7 +1252,7 @@ fn wrap_serialize_with(
1252
}
1253
1254
1255
- &__SerializeWith {
+ __SerializeWith {
1256
values: (#(#field_exprs, )*),
1257
phantom: _serde::__private::PhantomData::<#this_type #ty_generics>,
1258
0 commit comments