You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `bad::Command: std::default::Default` is not satisfied
--> src/bad.rs:74:21
|
74 | ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeEnum<Command>>(wire_type, is, &mut self.map)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `bad::Command`
|
= note: required by `protobuf::rt::read_map_into`
The text was updated successfully, but these errors were encountered:
The issue is implicitly fixed in master where all enums implement Default.
I decided to create a new stable branch — v2.3 — and cherry-pick that change from master. I think it would be backwards compatible, and proper fix not very trivial.
The text was updated successfully, but these errors were encountered: