From d574cfda3a692d300db02f486a1792a99b3f9f6d Mon Sep 17 00:00:00 2001 From: Andrew Hickman Date: Mon, 24 Jan 2022 18:34:54 +0000 Subject: [PATCH] fix(codec): Remove `Default` bound on `Codec` (#894) --- tonic/src/codec/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic/src/codec/mod.rs b/tonic/src/codec/mod.rs index 486f9d3f6..f10d9fe63 100644 --- a/tonic/src/codec/mod.rs +++ b/tonic/src/codec/mod.rs @@ -33,7 +33,7 @@ const HEADER_SIZE: usize = std::mem::size_of::(); /// Trait that knows how to encode and decode gRPC messages. -pub trait Codec: Default { +pub trait Codec { /// The encodable message. type Encode: Send + 'static; /// The decodable message.