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

feat: derive Copy trait for messages where possible #950

Merged
merged 2 commits into from
May 20, 2024

Commits on Apr 24, 2024

  1. feat: derive Copy trait for messages where possible

    Rust primitive types can be copied by simply copying the bits. Rust structs can also have this property by deriving the Copy trait.
    
    Automatically derive Copy for:
    - messages that only have fields with primitive types
    - the Rust enum for one-of fields
    - messages whose field type are messages that also implement Copy
    
    Generated code for Protobuf enums already derives Copy.
    caspermeijn committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    2ce0183 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. fix: Remove clone call when copy is implemented

    Clippy reports: warning: using `clone` on type `Timestamp` which implements the `Copy` trait
    caspermeijn committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    4ca89a0 View commit details
    Browse the repository at this point in the history