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 2f9ac85 commit d5c607a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions protobuf/src/reflect/acc/v2/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions protobuf/src/reflect/acc/v2/repeated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -84,7 +84,7 @@ where
ReflectRepeatedMut::new(repeated)
}

fn element_type(&self) -> RuntimeType {
fn _element_type(&self) -> RuntimeType {
V::RuntimeType::runtime_type_box()
}
}
Expand Down

0 comments on commit d5c607a

Please sign in to comment.