witnet / witnet-rust

Open source Rust implementation of the Witnet decentralized oracle protocol, including full node and wallet backend 👁️🦀
https://docs.witnet.io
GNU General Public License v3.0
180 stars 56 forks source link

Remove optional label in witnet.proto field #2443

Open drcpu-github opened 5 months ago

drcpu-github commented 5 months ago

There is an optional field in witnet.proto which should not be necessary as all fields are optional by default. Rustc 1.77 even refuses to build this:

witnet.proto:304:14: Explicit 'optional' labels are disallowed in the Proto3 syntax. To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default.
...