Skip to content

Commit

Permalink
digest: fixup clippy, add missing Debug impl
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Jun 2, 2024
1 parent 9136636 commit 5c0944b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions digest/src/hashreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use super::{Digest, FixedOutputReset, Output, Reset};
use std::io;

/// Abstraction over a reader which hashes the data being read
#[derive(Debug)]
pub struct HashReader<D: Digest, R: io::Read> {
reader: R,
hasher: D,
Expand Down
1 change: 1 addition & 0 deletions digest/src/hashwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use super::{Digest, FixedOutputReset, Output, Reset};
use std::io;

/// Abstraction over a writer which hashes the data being written.
#[derive(Debug)]
pub struct HashWriter<D: Digest, W: io::Write> {
writer: W,
hasher: D,
Expand Down

0 comments on commit 5c0944b

Please sign in to comment.