File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 33The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
44and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
55
6+ ## [ 0.3.4] - 2025-11-19
7+
8+ - ` CodecError ` now is ` Copy ` and/or ` Clone ` if the encompassing codec errors are ` Copy ` and/or ` Clone ` respectively.
9+
10+
611## [ 0.3.3] - 2025-10-08
712
813### New Codecs
Original file line number Diff line number Diff line change 11[package ]
22name = " codee"
3- version = " 0.3.3 "
3+ version = " 0.3.4 "
44edition = " 2021"
55categories = [" encoding" ]
66description = " Easy and flexible way of encoding and decoding data into either strings or bytes"
Original file line number Diff line number Diff line change @@ -7,3 +7,23 @@ pub enum CodecError<E, D> {
77 #[ error( "failed to decode: {0}" ) ]
88 Decode ( D ) ,
99}
10+
11+ impl < E , D > Clone for CodecError < E , D >
12+ where
13+ E : Clone ,
14+ D : Clone ,
15+ {
16+ fn clone ( & self ) -> Self {
17+ match self {
18+ CodecError :: Encode ( e) => CodecError :: Encode ( e. clone ( ) ) ,
19+ CodecError :: Decode ( d) => CodecError :: Decode ( d. clone ( ) ) ,
20+ }
21+ }
22+ }
23+
24+ impl < E , D > Copy for CodecError < E , D >
25+ where
26+ E : Copy ,
27+ D : Copy ,
28+ {
29+ }
You can’t perform that action at this time.
0 commit comments