We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7d78c commit 58dd600Copy full SHA for 58dd600
protobuf/src/message_field.rs
@@ -173,17 +173,6 @@ impl<M: Message> Deref for MessageField<M> {
173
}
174
175
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
-
187
impl<T> Default for MessageField<T> {
188
#[inline]
189
fn default() -> MessageField<T> {
0 commit comments