Skip to content

Commit

Permalink
More warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Jun 26, 2024
1 parent abc072d commit eb5a051
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions protobuf/src/reflect/type_dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ pub(crate) trait _ProtobufTypeDynamic: Send + Sync + 'static {
fn runtime_type(&self) -> RuntimeType;
}

pub(crate) struct ProtobufTypeDynamicImpl<T: ProtobufTypeTrait>(pub marker::PhantomData<T>);
pub(crate) struct _ProtobufTypeDynamicImpl<T: ProtobufTypeTrait>(pub marker::PhantomData<T>);

impl<T> _ProtobufTypeDynamic for ProtobufTypeDynamicImpl<T>
impl<T> _ProtobufTypeDynamic for _ProtobufTypeDynamicImpl<T>
where
T: ProtobufTypeTrait,
<T as ProtobufTypeTrait>::ProtobufValue: ProtobufValue,
Expand Down
4 changes: 2 additions & 2 deletions protobuf/src/reflect/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -35,7 +35,7 @@ pub(crate) trait ProtobufTypeTrait: Send + Sync + Clone + Sized + 'static {
where
Self::ProtobufValue: ProtobufValue,
{
&ProtobufTypeDynamicImpl::<Self>(marker::PhantomData)
&_ProtobufTypeDynamicImpl::<Self>(marker::PhantomData)
}

/// Wire type for encoding objects of this type
Expand Down

0 comments on commit eb5a051

Please sign in to comment.