mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Use double reference in debug derive
This commit is contained in:
parent
9b3387454d
commit
7da80d4f67
4 changed files with 91 additions and 8 deletions
|
@ -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! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue