Skip to content

Commit

Permalink
fix: derive common traits for DagPbCodec (#6)
Browse files Browse the repository at this point in the history
Derive Copy, Clone, Debug, PartialEq, and Eq.
  • Loading branch information
expede committed Apr 25, 2024
1 parent f61fb0c commit c394d89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub fn links(bytes: &[u8], links: &mut impl Extend<Cid>) -> Result<(), Error> {
}

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

impl Codec<Ipld> for DagPbCodec {
Expand Down

0 comments on commit c394d89

Please sign in to comment.