diff --git a/protobuf/src/message_field.rs b/protobuf/src/message_field.rs index 5fc533178..e625832a8 100644 --- a/protobuf/src/message_field.rs +++ b/protobuf/src/message_field.rs @@ -173,17 +173,6 @@ impl Deref for MessageField { } } -/// Get a mutable reference to the message **and** initialize the message if not initialized yet. -/// -/// Note that part about initializing is not conventional. -/// Generally `DerefMut` is not supposed to modify the state. -#[cfg(no)] -impl DerefMut for MessageField { - fn deref_mut(&mut self) -> &mut Self::Target { - self.mut_or_insert_default() - } -} - impl Default for MessageField { #[inline] fn default() -> MessageField {