diff options
Diffstat (limited to 'src/codec.rs')
| -rw-r--r-- | src/codec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec.rs b/src/codec.rs index 778001f..6680699 100644 --- a/src/codec.rs +++ b/src/codec.rs @@ -4,5 +4,5 @@ pub mod decode; pub mod encode; pub mod error; -pub trait Codec<Ctx>: Encode<Ctx> + Decode<Ctx> {} -impl<Ctx, T> Codec<Ctx> for T where T: Encode<Ctx> + Decode<Ctx> {} +pub trait Codec<Data = ()>: Encode<Data> + Decode<Data> {} +impl<Data, T> Codec<Data> for T where T: Encode<Data> + Decode<Data> {} |
