Skip to content

Commit

Permalink
Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Sep 30, 2024
1 parent 4c7d78c commit 58dd600
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions protobuf/src/message_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,6 @@ impl<M: Message> Deref for MessageField<M> {
}
}

/// 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<M: Message> DerefMut for MessageField<M> {
fn deref_mut(&mut self) -> &mut Self::Target {
self.mut_or_insert_default()
}
}

impl<T> Default for MessageField<T> {
#[inline]
fn default() -> MessageField<T> {
Expand Down

0 comments on commit 58dd600

Please sign in to comment.