From eb5a051248b0859c36bab836a976aca5e4249d2a Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Wed, 26 Jun 2024 01:43:32 +0100 Subject: [PATCH] More warnings --- protobuf/src/reflect/type_dynamic.rs | 4 ++-- protobuf/src/reflect/types.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protobuf/src/reflect/type_dynamic.rs b/protobuf/src/reflect/type_dynamic.rs index 67a2ff036..4d79732d8 100644 --- a/protobuf/src/reflect/type_dynamic.rs +++ b/protobuf/src/reflect/type_dynamic.rs @@ -19,9 +19,9 @@ pub(crate) trait _ProtobufTypeDynamic: Send + Sync + 'static { fn runtime_type(&self) -> RuntimeType; } -pub(crate) struct ProtobufTypeDynamicImpl(pub marker::PhantomData); +pub(crate) struct _ProtobufTypeDynamicImpl(pub marker::PhantomData); -impl _ProtobufTypeDynamic for ProtobufTypeDynamicImpl +impl _ProtobufTypeDynamic for _ProtobufTypeDynamicImpl where T: ProtobufTypeTrait, ::ProtobufValue: ProtobufValue, diff --git a/protobuf/src/reflect/types.rs b/protobuf/src/reflect/types.rs index 6dd119e1c..59ff1e678 100644 --- a/protobuf/src/reflect/types.rs +++ b/protobuf/src/reflect/types.rs @@ -13,8 +13,8 @@ use crate::coded_input_stream::CodedInputStream; use crate::coded_output_stream::CodedOutputStream; use crate::enums::Enum; use crate::error::Result; -use crate::reflect::type_dynamic::ProtobufTypeDynamicImpl; use crate::reflect::type_dynamic::_ProtobufTypeDynamic; +use crate::reflect::type_dynamic::_ProtobufTypeDynamicImpl; use crate::reflect::ProtobufValue; use crate::rt; use crate::rt::singular::value_varint_zigzag_size_no_tag; @@ -35,7 +35,7 @@ pub(crate) trait ProtobufTypeTrait: Send + Sync + Clone + Sized + 'static { where Self::ProtobufValue: ProtobufValue, { - &ProtobufTypeDynamicImpl::(marker::PhantomData) + &_ProtobufTypeDynamicImpl::(marker::PhantomData) } /// Wire type for encoding objects of this type