Skip to content

Commit 58dd600

Browse files
committed
Warnings
1 parent 4c7d78c commit 58dd600

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

protobuf/src/message_field.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,6 @@ impl<M: Message> Deref for MessageField<M> {
173173
}
174174
}
175175

176-
/// Get a mutable reference to the message **and** initialize the message if not initialized yet.
177-
///
178-
/// Note that part about initializing is not conventional.
179-
/// Generally `DerefMut` is not supposed to modify the state.
180-
#[cfg(no)]
181-
impl<M: Message> DerefMut for MessageField<M> {
182-
fn deref_mut(&mut self) -> &mut Self::Target {
183-
self.mut_or_insert_default()
184-
}
185-
}
186-
187176
impl<T> Default for MessageField<T> {
188177
#[inline]
189178
fn default() -> MessageField<T> {

0 commit comments

Comments
 (0)