Skip to content

tonic-prost 0.14: ProstEncoder and ProstDecoder Default shouldn't require T: Default #2458

@jrose-signal

Description

@jrose-signal

In tonic-prost 0.14.2, ProstEncoder and ProstDecoder both derive(Default). However, that makes their Default impl dependent on the message type also implementing Default, which is unnecessary.

Workaround: ProstEncoder::new(Default::default())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions