From 58dd60070ac84c043e35a9fb1f291490a1db4c69 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Mon, 30 Sep 2024 01:07:43 +0100 Subject: [PATCH] Warnings --- protobuf/src/message_field.rs | 11 ----------- 1 file changed, 11 deletions(-) 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 {