Skip to content

Commit

Permalink
fix(clippy): more clippy fixes (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 9, 2023
1 parent 399eafd commit 0d6c019
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ mod tests {

#[test]
fn algorithm_formatting() {
assert_eq!(format!("{Sha1}"), "sha1");
assert_eq!(format!("{Sha256}"), "sha256");
assert_eq!(format!("{Sha384}"), "sha384");
assert_eq!(format!("{Sha512}"), "sha512");
assert_eq!(format!("{}", Sha1), "sha1");
assert_eq!(format!("{}", Sha256), "sha256");
assert_eq!(format!("{}", Sha384), "sha384");
assert_eq!(format!("{}", Sha512), "sha512");
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mod tests {
.parse::<Integrity>()
.unwrap()
.concat(Integrity::from(b"hello world"));
eprintln!("\n{sri}");
eprintln!("\n{}", sri);
let result = IntegrityChecker::new(sri).chain(b"hello world").result();
assert_eq!(result.unwrap(), Algorithm::Sha256)
}
Expand Down

0 comments on commit 0d6c019

Please sign in to comment.