diff options
| author | zirkonya <zirkonya@iridium.lan> | 2026-08-27 09:45:12 +0200 |
|---|---|---|
| committer | zirkonya <zirkonya@iridium.lan> | 2026-08-27 09:45:12 +0200 |
| commit | bb41e396aca01fee9f81785681fac0a79d0fd9d8 (patch) | |
| tree | 94ebe4800a50c14abc413cbcabe9ffaaab7496ef /src/codec.rs | |
| parent | 8bae725a803ee00bf5bc86b9fc0be6853b95115e (diff) | |
split event and enhance context
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> {} |
