From 02bbe210f51afd6796b72ddfa05f413f4c7334d8 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Wed, 24 Jul 2024 23:01:10 +0100 Subject: [PATCH] Remove vector --- program/rust/src/validator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/rust/src/validator.rs b/program/rust/src/validator.rs index dbb68919..e0a1d04f 100644 --- a/program/rust/src/validator.rs +++ b/program/rust/src/validator.rs @@ -149,8 +149,8 @@ fn checked_load_price_account(price_account_info: &[u8]) -> Option<&PriceAccount )) } -pub fn compute_publisher_stake_caps( - account_datas: Vec<&[u8]>, +pub fn compute_publisher_stake_caps<'a>( + account_datas: impl IntoIterator, timestamp: i64, m: u64, z: u64,