Skip to content

Commit

Permalink
feat: Relax Message Debug trait bound
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Sep 4, 2024
1 parent 96c40d7 commit 9fb1f4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions prost/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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.
Expand Down

0 comments on commit 9fb1f4f

Please sign in to comment.