mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 06:11:34 +00:00
Update protobuf to version 2.3.0 (#904)
Initially I had hoped that the deprecated `#![allow(clippy)]` would no longer be put into the generated rust files, but -- as of 2019-01-30 -- it still is (see [1] for details). Since we explicitly update the protobuf files I decided to *manually edit the generated code* and replace this with `#![allow(clippy:all)]`. Hopefully, by the time we do the next upgrade, no such manual tweaking would be necessary anymore. I think the benefit of a less polluted clippy output is worth it this time. [1]: https://github.com/stepancheg/rust-protobuf/pull/332
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
||||
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||
// @generated
|
||||
|
||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||
#![allow(unknown_lints)]
|
||||
#![allow(clippy)]
|
||||
#![allow(clippy::all)]
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
|
||||
@ -27,8 +27,8 @@ pub struct RPC {
|
||||
subscriptions: ::protobuf::RepeatedField<RPC_SubOpts>,
|
||||
publish: ::protobuf::RepeatedField<Message>,
|
||||
// special fields
|
||||
unknown_fields: ::protobuf::UnknownFields,
|
||||
cached_size: ::protobuf::CachedSize,
|
||||
pub unknown_fields: ::protobuf::UnknownFields,
|
||||
pub cached_size: ::protobuf::CachedSize,
|
||||
}
|
||||
|
||||
impl RPC {
|
||||
@ -246,8 +246,8 @@ pub struct RPC_SubOpts {
|
||||
subscribe: ::std::option::Option<bool>,
|
||||
topicid: ::protobuf::SingularField<::std::string::String>,
|
||||
// special fields
|
||||
unknown_fields: ::protobuf::UnknownFields,
|
||||
cached_size: ::protobuf::CachedSize,
|
||||
pub unknown_fields: ::protobuf::UnknownFields,
|
||||
pub cached_size: ::protobuf::CachedSize,
|
||||
}
|
||||
|
||||
impl RPC_SubOpts {
|
||||
@ -460,8 +460,8 @@ pub struct Message {
|
||||
seqno: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||
topicIDs: ::protobuf::RepeatedField<::std::string::String>,
|
||||
// special fields
|
||||
unknown_fields: ::protobuf::UnknownFields,
|
||||
cached_size: ::protobuf::CachedSize,
|
||||
pub unknown_fields: ::protobuf::UnknownFields,
|
||||
pub cached_size: ::protobuf::CachedSize,
|
||||
}
|
||||
|
||||
impl Message {
|
||||
@ -777,8 +777,8 @@ pub struct TopicDescriptor {
|
||||
auth: ::protobuf::SingularPtrField<TopicDescriptor_AuthOpts>,
|
||||
enc: ::protobuf::SingularPtrField<TopicDescriptor_EncOpts>,
|
||||
// special fields
|
||||
unknown_fields: ::protobuf::UnknownFields,
|
||||
cached_size: ::protobuf::CachedSize,
|
||||
pub unknown_fields: ::protobuf::UnknownFields,
|
||||
pub cached_size: ::protobuf::CachedSize,
|
||||
}
|
||||
|
||||
impl TopicDescriptor {
|
||||
@ -1063,8 +1063,8 @@ pub struct TopicDescriptor_AuthOpts {
|
||||
mode: ::std::option::Option<TopicDescriptor_AuthOpts_AuthMode>,
|
||||
keys: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
||||
// special fields
|
||||
unknown_fields: ::protobuf::UnknownFields,
|
||||
cached_size: ::protobuf::CachedSize,
|
||||
pub unknown_fields: ::protobuf::UnknownFields,
|
||||
pub cached_size: ::protobuf::CachedSize,
|
||||
}
|
||||
|
||||
impl TopicDescriptor_AuthOpts {
|
||||
@ -1300,6 +1300,12 @@ impl ::protobuf::ProtobufEnum for TopicDescriptor_AuthOpts_AuthMode {
|
||||
impl ::std::marker::Copy for TopicDescriptor_AuthOpts_AuthMode {
|
||||
}
|
||||
|
||||
impl ::std::default::Default for TopicDescriptor_AuthOpts_AuthMode {
|
||||
fn default() -> Self {
|
||||
TopicDescriptor_AuthOpts_AuthMode::NONE
|
||||
}
|
||||
}
|
||||
|
||||
impl ::protobuf::reflect::ProtobufValue for TopicDescriptor_AuthOpts_AuthMode {
|
||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||
@ -1312,8 +1318,8 @@ pub struct TopicDescriptor_EncOpts {
|
||||
mode: ::std::option::Option<TopicDescriptor_EncOpts_EncMode>,
|
||||
keyHashes: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
||||
// special fields
|
||||
unknown_fields: ::protobuf::UnknownFields,
|
||||
cached_size: ::protobuf::CachedSize,
|
||||
pub unknown_fields: ::protobuf::UnknownFields,
|
||||
pub cached_size: ::protobuf::CachedSize,
|
||||
}
|
||||
|
||||
impl TopicDescriptor_EncOpts {
|
||||
@ -1549,6 +1555,12 @@ impl ::protobuf::ProtobufEnum for TopicDescriptor_EncOpts_EncMode {
|
||||
impl ::std::marker::Copy for TopicDescriptor_EncOpts_EncMode {
|
||||
}
|
||||
|
||||
impl ::std::default::Default for TopicDescriptor_EncOpts_EncMode {
|
||||
fn default() -> Self {
|
||||
TopicDescriptor_EncOpts_EncMode::NONE
|
||||
}
|
||||
}
|
||||
|
||||
impl ::protobuf::reflect::ProtobufValue for TopicDescriptor_EncOpts_EncMode {
|
||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||
|
Reference in New Issue
Block a user