Use double reference in debug derive

This commit is contained in:
hkalbasi 2023-05-12 12:36:57 +03:30
parent 9b3387454d
commit 7da80d4f67
4 changed files with 91 additions and 8 deletions

View file

@ -519,7 +519,7 @@ fn debug_expand(
let for_fields = fields.iter().map(|x| {
let x_string = x.to_string();
quote! {
.field(#x_string, #x)
.field(#x_string, & #x)
}
});
quote! {
@ -529,7 +529,7 @@ fn debug_expand(
VariantShape::Tuple(n) => {
let for_fields = tuple_field_iterator(*n).map(|x| {
quote! {
.field(#x)
.field( & #x)
}
});
quote! {