Skip to content

Commit

Permalink
fix(codec): Remove Default bound on Codec (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhickman authored Jan 24, 2022
1 parent 7179f7a commit d574cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/src/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const HEADER_SIZE: usize =
std::mem::size_of::<u32>();

/// 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.
Expand Down

0 comments on commit d574cfd

Please sign in to comment.