From bc553090fa68bad70e3b5acd02317d3af8d48e18 Mon Sep 17 00:00:00 2001 From: Joe Kale Date: Wed, 13 Dec 2023 16:12:49 -0500 Subject: [PATCH] impl From for Message Field for convenience --- protobuf/src/message_field.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protobuf/src/message_field.rs b/protobuf/src/message_field.rs index c7b46376e..c462441c8 100644 --- a/protobuf/src/message_field.rs +++ b/protobuf/src/message_field.rs @@ -192,6 +192,12 @@ impl Default for MessageField { } } +// impl From for MessageField { +// fn from(other: T) -> Self { +// MessageField::some(other) +// } +// } + /// We don't have `From>> for MessageField` because /// it would make type inference worse. impl From> for MessageField {