Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
initsecret committed Sep 2, 2024
1 parent e35ec91 commit 680136d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions openssl/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ mod tests {
let mut h = Hasher::new(digest).unwrap();
let mut buf = vec![0; digest.size()];
h.finish_xof(&mut buf).unwrap();
h.squeeze_xof(&mut buf).expect_err("squeezing after finalize should fail");
h.squeeze_xof(&mut buf)
.expect_err("squeezing after finalize should fail");
}

#[cfg(ossl330)]
Expand All @@ -594,7 +595,8 @@ mod tests {
let mut h = Hasher::new(digest).unwrap();
let mut buf = vec![0; digest.size()];
h.squeeze_xof(&mut buf).unwrap();
h.update(&data).expect_err("updating after squeeze should fail");
h.update(&data)
.expect_err("updating after squeeze should fail");
}

#[cfg(ossl330)]
Expand All @@ -604,7 +606,8 @@ mod tests {
let mut h = Hasher::new(digest).unwrap();
let mut buf = vec![0; digest.size()];
h.squeeze_xof(&mut buf).unwrap();
h.finish_xof(&mut buf).expect_err("finalize after squeeze should fail");
h.finish_xof(&mut buf)
.expect_err("finalize after squeeze should fail");
}

#[test]
Expand Down

0 comments on commit 680136d

Please sign in to comment.