Skip to content

Commit 73efebc

Browse files
committed
Require Debug impl for Error
1 parent 6a5c7ca commit 73efebc

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

ntex-codec/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
## [0.2.1] - 2020-08-10
4+
5+
* Require `Debug` impl for `Error`
6+
37
## [0.2.0] - 2020-08-10
48

59
* Include custom `Encoder` and `Decoder` traits

ntex-codec/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ntex-codec"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["ntex contributors <team@ntex.rs>"]
55
description = "Utilities for encoding and decoding frames"
66
keywords = ["network", "framework", "async", "futures"]

ntex-codec/src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub trait Decoder {
1010
/// If an individual message is ill-formed but can be ignored without
1111
/// interfering with the processing of future messages, it may be more
1212
/// useful to report the failure as an `Item`.
13-
type Error;
13+
type Error: std::fmt::Debug;
1414

1515
/// Attempts to decode a frame from the provided buffer of bytes.
1616
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, Self::Error>;

ntex-codec/src/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub trait Encoder {
66
type Item;
77

88
/// The type of encoding errors.
9-
type Error;
9+
type Error: std::fmt::Debug;
1010

1111
/// Encodes a frame into the buffer provided.
1212
fn encode(

0 commit comments

Comments
 (0)