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

correct some inconsistent match bindings #173

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

wfraser
Copy link
Member

@wfraser wfraser commented Feb 21, 2025

Testing out the Rust 2024 edition revealed some cases where the generated serialization code is inconsistent in its binding modes. We start as ref (&self), switch to move (using * deref operator), then back to ref (using ref). The 2024 edition doesn't let you do this, and we don't need to anyway (just stay in ref mode), so let's fix that.

Checklist

General Contributing

  • I have read the Code of Conduct and signed the CLA.
  • I have added an entry to the RELEASE_NOTES.md file, or believe it's not necessary for this change.

Validation

Everything compiles.

Testing out the Rust 2024 edition revealed some cases where the generated serialization code is inconsistent with its binding modes. We start as ref, switch to move (using deref operator), then back to ref (using ref). The 2024 edition doesn't let you do this, and we don't need to anyway (just stay in ref mode), so let's fix that.
@wfraser wfraser merged commit 0ed284c into dropbox:master Feb 21, 2025
2 checks passed
@wfraser wfraser deleted the binding-mode branch February 21, 2025 04:09
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.

1 participant