Skip to content

Commit

Permalink
feat: derive common traits for DagCborCodec (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
expede authored Apr 22, 2024
1 parent 47594a9 commit ea977f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use serde::{de::Deserialize, ser::Serialize};
use crate::{de::Deserializer, error::CodecError};

/// DAG-CBOR implementation of ipld-core's `Codec` trait.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct DagCborCodec;

impl<T> Codec<T> for DagCborCodec
Expand Down

0 comments on commit ea977f2

Please sign in to comment.