You need to get a &mut _ reference to the Protobuf.
- let proto = root.protobuf_map.get("proto1").unwrap();
+ let proto = root.protobuf_map.get_mut("proto1").unwrap();
P.s. please read the pinned code formatting guide.
You need to get a &mut _ reference to the Protobuf.
- let proto = root.protobuf_map.get("proto1").unwrap();
+ let proto = root.protobuf_map.get_mut("proto1").unwrap();
P.s. please read the pinned code formatting guide.