From 9fb1f4f854e969e764bee37896def534092141a7 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 4 Sep 2024 10:18:08 +0900 Subject: [PATCH] feat: Relax Message Debug trait bound --- prost/src/message.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prost/src/message.rs b/prost/src/message.rs index ee33eecd9..2d91ede3c 100644 --- a/prost/src/message.rs +++ b/prost/src/message.rs @@ -3,8 +3,6 @@ use alloc::boxed::Box; #[cfg(not(feature = "std"))] use alloc::vec::Vec; -use core::fmt::Debug; - use bytes::{Buf, BufMut}; use crate::encoding::varint::{encode_varint, encoded_len_varint}; @@ -14,7 +12,7 @@ use crate::DecodeError; use crate::EncodeError; /// A Protocol Buffers message. -pub trait Message: Debug + Send + Sync { +pub trait Message: Send + Sync { /// Encodes the message to a buffer. /// /// This method will panic if the buffer has insufficient capacity.