diff --git a/protobuf/src/reflect/acc/v2/map.rs b/protobuf/src/reflect/acc/v2/map.rs index c3f3af213..c00c65f4b 100644 --- a/protobuf/src/reflect/acc/v2/map.rs +++ b/protobuf/src/reflect/acc/v2/map.rs @@ -17,7 +17,7 @@ use crate::reflect::RuntimeType; pub(crate) trait MapFieldAccessor: Send + Sync + 'static { fn get_reflect<'a>(&self, m: &'a dyn MessageDyn) -> ReflectMapRef<'a>; fn mut_reflect<'a>(&self, m: &'a mut dyn MessageDyn) -> ReflectMapMut<'a>; - fn element_type(&self) -> (RuntimeType, RuntimeType); + fn _element_type(&self) -> (RuntimeType, RuntimeType); } pub(crate) struct MapFieldAccessorHolder { @@ -57,7 +57,7 @@ where ReflectMapMut::new(map) } - fn element_type(&self) -> (RuntimeType, RuntimeType) { + fn _element_type(&self) -> (RuntimeType, RuntimeType) { ( K::RuntimeType::runtime_type_box(), V::RuntimeType::runtime_type_box(), @@ -84,7 +84,7 @@ where ReflectMapMut::new(map) } - fn element_type(&self) -> (RuntimeType, RuntimeType) { + fn _element_type(&self) -> (RuntimeType, RuntimeType) { ( K::RuntimeType::runtime_type_box(), V::RuntimeType::runtime_type_box(), diff --git a/protobuf/src/reflect/acc/v2/repeated.rs b/protobuf/src/reflect/acc/v2/repeated.rs index 78afdf29e..cb9b45bc5 100644 --- a/protobuf/src/reflect/acc/v2/repeated.rs +++ b/protobuf/src/reflect/acc/v2/repeated.rs @@ -15,7 +15,7 @@ use crate::reflect::RuntimeType; pub(crate) trait RepeatedFieldAccessor: Send + Sync + 'static { fn get_repeated<'a>(&self, m: &'a dyn MessageDyn) -> ReflectRepeatedRef<'a>; fn mut_repeated<'a>(&self, m: &'a mut dyn MessageDyn) -> ReflectRepeatedMut<'a>; - fn element_type(&self) -> RuntimeType; + fn _element_type(&self) -> RuntimeType; } pub(crate) struct RepeatedFieldAccessorHolder { @@ -84,7 +84,7 @@ where ReflectRepeatedMut::new(repeated) } - fn element_type(&self) -> RuntimeType { + fn _element_type(&self) -> RuntimeType { V::RuntimeType::runtime_type_box() } }