From 6cf5edf1f0f8df6e5a6269d6938976314bb9def0 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:48:19 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/ipc/mitmproxy_ipc.rs | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/ipc/mitmproxy_ipc.rs b/src/ipc/mitmproxy_ipc.rs index 7f92b185..d0e50428 100644 --- a/src/ipc/mitmproxy_ipc.rs +++ b/src/ipc/mitmproxy_ipc.rs @@ -8,34 +8,34 @@ #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketWithMeta { - #[prost(bytes = "vec", tag = "1")] + #[prost(bytes="vec", tag="1")] pub data: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub tunnel_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TunnelInfo { - #[prost(uint32, tag = "1")] + #[prost(uint32, tag="1")] pub pid: u32, - #[prost(string, optional, tag = "2")] + #[prost(string, optional, tag="2")] pub process_name: ::core::option::Option<::prost::alloc::string::String>, } /// Packet or intercept spec (Windows pipe to redirector) #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FromProxy { - #[prost(oneof = "from_proxy::Message", tags = "1, 2")] + #[prost(oneof="from_proxy::Message", tags="1, 2")] pub message: ::core::option::Option, } /// Nested message and enum types in `FromProxy`. pub mod from_proxy { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { - #[prost(message, tag = "1")] + #[prost(message, tag="1")] Packet(super::Packet), - #[prost(message, tag = "2")] + #[prost(message, tag="2")] InterceptConf(super::InterceptConf), } } @@ -43,68 +43,68 @@ pub mod from_proxy { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Packet { - #[prost(bytes = "vec", tag = "1")] + #[prost(bytes="vec", tag="1")] pub data: ::prost::alloc::vec::Vec, } /// Intercept conf (macOS Control Stream) #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterceptConf { - #[prost(uint32, repeated, tag = "1")] + #[prost(uint32, repeated, tag="1")] pub pids: ::prost::alloc::vec::Vec, - #[prost(string, repeated, tag = "2")] + #[prost(string, repeated, tag="2")] pub process_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(bool, tag = "3")] + #[prost(bool, tag="3")] pub invert: bool, } /// New flow (macOS TCP/UDP Stream) #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewFlow { - #[prost(oneof = "new_flow::Message", tags = "1, 2")] + #[prost(oneof="new_flow::Message", tags="1, 2")] pub message: ::core::option::Option, } /// Nested message and enum types in `NewFlow`. pub mod new_flow { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { - #[prost(message, tag = "1")] + #[prost(message, tag="1")] Tcp(super::TcpFlow), - #[prost(message, tag = "2")] + #[prost(message, tag="2")] Udp(super::UdpFlow), } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TcpFlow { - #[prost(message, optional, tag = "1")] + #[prost(message, optional, tag="1")] pub remote_address: ::core::option::Option
, - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub tunnel_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UdpFlow { - #[prost(message, optional, tag = "1")] + #[prost(message, optional, tag="1")] pub local_address: ::core::option::Option
, - #[prost(message, optional, tag = "3")] + #[prost(message, optional, tag="3")] pub tunnel_info: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UdpPacket { - #[prost(bytes = "vec", tag = "1")] + #[prost(bytes="vec", tag="1")] pub data: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub remote_address: ::core::option::Option
, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Address { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub host: ::prost::alloc::string::String, - #[prost(uint32, tag = "2")] + #[prost(uint32, tag="2")] pub port: u32, } // @@protoc_insertion_point(module)