From 825322c730622ddbf12a54b722257e729f61f7f7 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 18 Jul 2021 16:04:22 +0800 Subject: [PATCH] add explicit .iter() for arrays so we still work with Rust 1.51 --- tools/src/bin/sign-image.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/src/bin/sign-image.rs b/tools/src/bin/sign-image.rs index a20dd5407..f8f978988 100644 --- a/tools/src/bin/sign-image.rs +++ b/tools/src/bin/sign-image.rs @@ -21,10 +21,10 @@ where let mut source_file = std::fs::File::open(input)?; let mut dest_file = std::fs::File::create(output)?; source_file.read_to_end(&mut source)?; - for b in LOADER_VERSION.to_le_bytes() { + for &b in LOADER_VERSION.to_le_bytes().iter() { source.push(b); } - for b in (source.len() as u32).to_le_bytes() { + for &b in (source.len() as u32).to_le_bytes().iter() { source.push(b); }