Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Remove explicit call to .into_iter()
Browse files Browse the repository at this point in the history
Fixes lint in introduced in 1.72 rust

Signed-off-by: Andrea Gunderson <[email protected]>
  • Loading branch information
agunde406 committed Sep 29, 2023
1 parent fdc5073 commit 11c156f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsawtooth/src/hashlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn sha256_digest_strs(strs: &[String]) -> Vec<u8> {
hasher.update(item.as_bytes());
}
let mut bytes = Vec::new();
bytes.extend(hasher.finalize().into_iter());
bytes.extend(hasher.finalize());
bytes
}

Expand Down

0 comments on commit 11c156f

Please sign in to comment.