From 11c156f6cb22f051f5f7d1f74bdfd9ccddb28d81 Mon Sep 17 00:00:00 2001 From: Andrea Gunderson Date: Fri, 29 Sep 2023 08:17:05 -0500 Subject: [PATCH] Remove explicit call to .into_iter() Fixes lint in introduced in 1.72 rust Signed-off-by: Andrea Gunderson --- libsawtooth/src/hashlib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsawtooth/src/hashlib.rs b/libsawtooth/src/hashlib.rs index f96cba166..fbe3f612c 100644 --- a/libsawtooth/src/hashlib.rs +++ b/libsawtooth/src/hashlib.rs @@ -27,7 +27,7 @@ pub fn sha256_digest_strs(strs: &[String]) -> Vec { hasher.update(item.as_bytes()); } let mut bytes = Vec::new(); - bytes.extend(hasher.finalize().into_iter()); + bytes.extend(hasher.finalize()); bytes }