Skip to content

Commit 1c74f81

Browse files
committed
feat: make DynamicMessage public
1 parent a542121 commit 1c74f81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

protobuf/src/reflect/dynamic/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl DynamicFieldValue {
9696
}
9797

9898
#[derive(Debug, Clone)]
99-
pub(crate) struct DynamicMessage {
99+
pub struct DynamicMessage {
100100
descriptor: MessageDescriptor,
101101
/// Fields by index in the description.
102102
/// This field is lazy-init: it is empty when created.
@@ -127,7 +127,7 @@ impl DynamicMessage {
127127
}
128128
}
129129

130-
pub(crate) fn get_reflect<'a>(&'a self, field: &FieldDescriptor) -> ReflectFieldRef<'a> {
130+
pub fn get_reflect<'a>(&'a self, field: &FieldDescriptor) -> ReflectFieldRef<'a> {
131131
let (descriptor, index) = field.regular();
132132
assert_eq!(self.descriptor, descriptor);
133133
if self.fields.is_empty() {

protobuf/src/reflect/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//! Some minor adjustements are made to make code more idiomatic to rust.
1515
1616
mod acc;
17-
mod dynamic;
17+
pub mod dynamic;
1818
mod enums;
1919
pub(crate) mod error;
2020
mod field;

0 commit comments

Comments
 (0)