From aba89afe0e06a1c9e9ee4994608204e1e46c1689 Mon Sep 17 00:00:00 2001 From: Joonatan Saarhelo Date: Mon, 18 Dec 2023 16:12:01 +0000 Subject: [PATCH 1/2] remove unnecessary to_vec --- core/lib/utils/src/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/utils/src/misc.rs b/core/lib/utils/src/misc.rs index 887413a6f45e..94f7a9adc09d 100644 --- a/core/lib/utils/src/misc.rs +++ b/core/lib/utils/src/misc.rs @@ -26,7 +26,7 @@ pub fn expand_memory_contents(packed: &[(usize, U256)], memory_size_bytes: usize value.to_big_endian(&mut result[(offset * 32)..(offset + 1) * 32]); } - result.to_vec() + result } #[cfg(test)] From 6abdad39ea9021d1601c5a4e6521771b269590e6 Mon Sep 17 00:00:00 2001 From: Joonatan Saarhelo Date: Mon, 18 Dec 2023 16:23:34 +0000 Subject: [PATCH 2/2] update zerocopy --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5715358c3257..4c1e4fe07953 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8182,18 +8182,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.11" +version = "0.7.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c19fae0c8a9efc6a8281f2e623db8af1db9e57852e04cde3e754dd2dc29340f" +checksum = "1c4061bedbb353041c12f413700357bec76df2c7e2ca8e4df8bac24c6bf68e3d" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.11" +version = "0.7.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc56589e9ddd1f1c28d4b4b5c773ce232910a6bb67a70133d61c9e347585efe9" +checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a" dependencies = [ "proc-macro2 1.0.69", "quote 1.0.33",