Skip to content

Commit 02bbe21

Browse files
committed
Remove vector
1 parent 0783aa5 commit 02bbe21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

program/rust/src/validator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ fn checked_load_price_account(price_account_info: &[u8]) -> Option<&PriceAccount
149149
))
150150
}
151151

152-
pub fn compute_publisher_stake_caps(
153-
account_datas: Vec<&[u8]>,
152+
pub fn compute_publisher_stake_caps<'a>(
153+
account_datas: impl IntoIterator<Item = &'a [u8]>,
154154
timestamp: i64,
155155
m: u64,
156156
z: u64,

0 commit comments

Comments
 (0)