From 1cbd2372fc4a3acf40a3ae5871af42f0a893c1d6 Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 21 May 2019 11:53:53 -0700 Subject: [PATCH] Revert 4271 workaround (#4367) * Revert "#4271 not reproducable, remove workaround (#4363)" This reverts commit ef0580bd3dff7803de8d139ff46ffa5647189177. * Remove old comment --- sdk/bpf/rust-utils/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/bpf/rust-utils/src/lib.rs b/sdk/bpf/rust-utils/src/lib.rs index 2f8524b0d7..21afd6357b 100644 --- a/sdk/bpf/rust-utils/src/lib.rs +++ b/sdk/bpf/rust-utils/src/lib.rs @@ -181,7 +181,8 @@ pub fn deserialize<'a>( let mut ka: [Option; MAX_ACCOUNTS] = [None, None, None, None, None, None, None, None, None, None]; - for i in 0..num_ka { + let iter = 0..num_ka; // This weirdness due to #issue $#4271 + for (i, _) in iter.enumerate() { let is_signer = unsafe { #[allow(clippy::cast_ptr_alignment)] let is_signer_ptr: *const u64 = input.add(offset) as *const u64;