Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use double ref vars in Debug derive #380

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

JelteF
Copy link
Owner

@JelteF JelteF commented Jul 3, 2024

Related to #289
Related to #328

Synopsis

While looking into #328 I realized the current situation around Pointer derives
and references was even weirder because we store a double-reference to the
fields in the local variables for Debug, but not for Display. The reason we
were doing this was because of #289.

Solution

This stops storing a double-reference, and only adds the additional reference
in the places where its needed.

@JelteF JelteF added this to the 1.0.0 milestone Jul 3, 2024
@JelteF JelteF added docs and removed docs labels Jul 3, 2024
@JelteF JelteF self-assigned this Jul 3, 2024
@JelteF JelteF requested a review from tyranron July 3, 2024 15:15
@tyranron tyranron enabled auto-merge (squash) July 4, 2024 09:53
@tyranron tyranron merged commit 974824a into master Jul 4, 2024
17 checks passed
@tyranron tyranron deleted the no-double-ref-debug branch July 4, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants