68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
217 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
218 |
#[allow(clippy::ptr_offset_with_cast)]
|
219 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
217 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
218 |
#[allow(clippy::ptr_offset_with_cast)]
|
219 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
217 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
218 |
#[allow(clippy::ptr_offset_with_cast)]
|
219 |
let (
|
29 |
clippy::assign_op_pattern,
|
30 |
clippy::ptr_offset_with_cast,
|
31 |
clippy::manual_range_contains,
|
8 |
clippy::assign_op_pattern,
|
9 |
clippy::ptr_offset_with_cast,
|
10 |
clippy::range_plus_one,
|
9 |
clippy::assign_op_pattern,
|
10 |
clippy::ptr_offset_with_cast,
|
11 |
clippy::range_plus_one,
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
90 |
impl<M: PrimaryTableMode> PrimaryTable<M> {
|
91 |
#[allow(clippy::ptr_offset_with_cast)]
|
92 |
pub fn split_chunk(
|
18 |
#[allow(clippy::assign_op_pattern)]
|
19 |
#[allow(clippy::ptr_offset_with_cast)]
|
20 |
#[allow(clippy::reversed_empty_ranges)]
|
70 |
mod entry;
|
71 |
#[allow(clippy::ptr_offset_with_cast)]
|
72 |
#[allow(clippy::assign_op_pattern)]
|
216 |
let src = array_ref![src, 0, 355];
|
217 |
#[allow(clippy::ptr_offset_with_cast)]
|
218 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
235 |
let dst = array_mut_ref![dst, 0, 355];
|
236 |
#[allow(clippy::ptr_offset_with_cast)]
|
237 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
211 |
let input = array_ref![input, 0, 33];
|
212 |
#[allow(clippy::ptr_offset_with_cast)]
|
213 |
let (curve_type, calculator) = array_refs![input, 1, 32];
|
161 |
let input = array_ref![input, 0, 64];
|
162 |
#[allow(clippy::ptr_offset_with_cast)]
|
163 |
let (
|
215 |
let input = array_ref![input, 0, 323];
|
216 |
#[allow(clippy::ptr_offset_with_cast)]
|
217 |
let (
|
424 |
#[allow(clippy::assign_op_pattern)]
|
425 |
#[allow(clippy::ptr_offset_with_cast)]
|
426 |
fn decompose_for_scalar_mul(scalar: Value<&pallas::Base>) -> Vec<Value<bool>> {
|
338 |
#[allow(clippy::assign_op_pattern)]
|
339 |
#[allow(clippy::ptr_offset_with_cast)]
|
340 |
#[test]
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
70 |
mod entry;
|
71 |
#[allow(clippy::ptr_offset_with_cast)]
|
72 |
#[allow(clippy::assign_op_pattern)]
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
217 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
218 |
#[allow(clippy::ptr_offset_with_cast)]
|
219 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
221 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (
|
69 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
70 |
#[allow(clippy::ptr_offset_with_cast)]
|
71 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
133 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
134 |
#[allow(clippy::ptr_offset_with_cast)]
|
135 |
let (user_account, state_user_distribute, amount, nft_find) = array_refs![
|
149 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
150 |
#[allow(clippy::ptr_offset_with_cast)]
|
151 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
69 |
let user_data = array_ref![list_splm_assets, offset, SPLM_ASSET_SIZE];
|
70 |
#[allow(clippy::ptr_offset_with_cast)]
|
71 |
let (splm_asset_address, state) = array_refs![user_data, PUBKEY_SIZE, STATE_SPLM_ASSET_SIZE];
|
136 |
let splu_secondary = array_ref![list_splu_data, offset, SPLU_SECONDARY_STRUCT_LEN];
|
137 |
#[allow(clippy::ptr_offset_with_cast)]
|
138 |
let (splu_secondary_address, splu_state,splu_secondary_temporal) = array_refs![splu_secondary, PUBKEY_SIZE, 1,PUBKEY_SIZE];
|
168 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
169 |
#[allow(clippy::ptr_offset_with_cast)]
|
170 |
let (
|
68 |
let user_data = array_ref![list_admins, offset, USER_ADMIN_SIZE];
|
69 |
#[allow(clippy::ptr_offset_with_cast)]
|
70 |
let (user_admin_account, state) = array_refs![user_data, PUBKEY_SIZE, STATE_ADMIN_SIZE];
|
107 |
let user_data = array_ref![list_user_distribute_data, offset, USER_DISTRIBUTE_SIZE];
|
108 |
#[allow(clippy::ptr_offset_with_cast)]
|
109 |
let (user_portfolio_account, amount, nft_find, state_user_distribute) = array_refs![
|
145 |
let asset_data = array_ref![list_asset_data, offset, ASSET_LEN];
|
146 |
#[allow(clippy::ptr_offset_with_cast)]
|
147 |
let (amount, address_asset, periode, asset_to_sold_into_asset, percentage) = array_refs![
|
217 |
let splu_data = array_ref![list_splu_data, offset, SPLU_LEN];
|
218 |
#[allow(clippy::ptr_offset_with_cast)]
|
219 |
let (
|
74 |
let output = array_mut_ref![output, 0, LENDING_MARKET_LEN];
|
75 |
#[allow(clippy::ptr_offset_with_cast)]
|
76 |
let (
|
105 |
let input = array_ref![input, 0, LENDING_MARKET_LEN];
|
106 |
#[allow(clippy::ptr_offset_with_cast)]
|
107 |
let (
|
335 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
336 |
#[allow(clippy::ptr_offset_with_cast)]
|
337 |
let (
|
383 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
384 |
#[allow(clippy::ptr_offset_with_cast)]
|
385 |
let (deposit_reserve, deposited_amount, market_value) =
|
395 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
396 |
#[allow(clippy::ptr_offset_with_cast)]
|
397 |
let (borrow_reserve, cumulative_borrow_rate_wads, borrowed_amount_wads, market_value) =
|
412 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
413 |
#[allow(clippy::ptr_offset_with_cast)]
|
414 |
let (
|
456 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
457 |
#[allow(clippy::ptr_offset_with_cast)]
|
458 |
let (deposit_reserve, deposited_amount, market_value) =
|
732 |
let output = array_mut_ref![output, 0, RESERVE_LEN];
|
733 |
#[allow(clippy::ptr_offset_with_cast)]
|
734 |
let (
|
36 |
let output = array_mut_ref![dst, 0, StakeAccount::LEN];
|
37 |
#[allow(clippy::ptr_offset_with_cast)]
|
38 |
let (version, start_rate, owner, pool_pubkey, deposited_value, unclaimed_reward_wads, _) = mut_array_refs![
|
57 |
let input = array_ref![src, 0, StakeAccount::LEN];
|
58 |
#[allow(clippy::ptr_offset_with_cast)]
|
59 |
let (version, start_rate, owner, pool_pubkey, deposited_value, unclaimed_reward_wads, _) = array_refs![
|
55 |
let output = array_mut_ref![dst, 0, StakingPool::LEN];
|
56 |
#[allow(clippy::ptr_offset_with_cast)]
|
57 |
let (
|
101 |
let input = array_ref![src, 0, StakingPool::LEN];
|
102 |
#[allow(clippy::ptr_offset_with_cast)]
|
103 |
let (
|
36 |
let output = array_mut_ref![dst, 0, StakeAccount::LEN];
|
37 |
#[allow(clippy::ptr_offset_with_cast)]
|
38 |
let (version, start_rate, owner, pool_pubkey, deposited_value, unclaimed_reward_wads, _) = mut_array_refs![
|
57 |
let input = array_ref![src, 0, StakeAccount::LEN];
|
58 |
#[allow(clippy::ptr_offset_with_cast)]
|
59 |
let (version, start_rate, owner, pool_pubkey, deposited_value, unclaimed_reward_wads, _) = array_refs![
|
55 |
let output = array_mut_ref![dst, 0, StakingPool::LEN];
|
56 |
#[allow(clippy::ptr_offset_with_cast)]
|
57 |
let (
|
101 |
let input = array_ref![src, 0, StakingPool::LEN];
|
102 |
#[allow(clippy::ptr_offset_with_cast)]
|
103 |
let (
|
74 |
let output = array_mut_ref![output, 0, LENDING_MARKET_LEN];
|
75 |
#[allow(clippy::ptr_offset_with_cast)]
|
76 |
let (
|
105 |
let input = array_ref![input, 0, LENDING_MARKET_LEN];
|
106 |
#[allow(clippy::ptr_offset_with_cast)]
|
107 |
let (
|
335 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
336 |
#[allow(clippy::ptr_offset_with_cast)]
|
337 |
let (
|
383 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
384 |
#[allow(clippy::ptr_offset_with_cast)]
|
385 |
let (deposit_reserve, deposited_amount, market_value) =
|
395 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
396 |
#[allow(clippy::ptr_offset_with_cast)]
|
397 |
let (borrow_reserve, cumulative_borrow_rate_wads, borrowed_amount_wads, market_value) =
|
412 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
413 |
#[allow(clippy::ptr_offset_with_cast)]
|
414 |
let (
|
456 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
457 |
#[allow(clippy::ptr_offset_with_cast)]
|
458 |
let (deposit_reserve, deposited_amount, market_value) =
|
732 |
let output = array_mut_ref![output, 0, RESERVE_LEN];
|
733 |
#[allow(clippy::ptr_offset_with_cast)]
|
734 |
let (
|
36 |
let output = array_mut_ref![dst, 0, StakeAccount::LEN];
|
37 |
#[allow(clippy::ptr_offset_with_cast)]
|
38 |
let (version, start_rate, owner, pool_pubkey, deposited_value, unclaimed_reward_wads, _) = mut_array_refs![
|
57 |
let input = array_ref![src, 0, StakeAccount::LEN];
|
58 |
#[allow(clippy::ptr_offset_with_cast)]
|
59 |
let (version, start_rate, owner, pool_pubkey, deposited_value, unclaimed_reward_wads, _) = array_refs![
|
55 |
let output = array_mut_ref![dst, 0, StakingPool::LEN];
|
56 |
#[allow(clippy::ptr_offset_with_cast)]
|
57 |
let (
|
101 |
let input = array_ref![src, 0, StakingPool::LEN];
|
102 |
#[allow(clippy::ptr_offset_with_cast)]
|
103 |
let (
|
55 |
let output = array_mut_ref![output, 0, LENDING_MARKET_LEN];
|
56 |
#[allow(clippy::ptr_offset_with_cast)]
|
57 |
let (
|
86 |
let input = array_ref![input, 0, LENDING_MARKET_LEN];
|
87 |
#[allow(clippy::ptr_offset_with_cast)]
|
88 |
let (
|
70 |
fn pack_coption_key(src: &COption<Pubkey>, dst: &mut [u8; 4 + PUBKEY_BYTES]) {
|
71 |
#[allow(clippy::ptr_offset_with_cast)]
|
72 |
let (tag, body) = mut_array_refs![dst, 4, PUBKEY_BYTES];
|
85 |
fn unpack_coption_key(src: &[u8; 4 + PUBKEY_BYTES]) -> Result<COption<Pubkey>, ProgramError> {
|
86 |
#[allow(clippy::ptr_offset_with_cast)]
|
87 |
let (tag, body) = array_refs![src, 4, PUBKEY_BYTES];
|
168 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
169 |
#[allow(clippy::ptr_offset_with_cast)]
|
170 |
let (
|
216 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
217 |
#[allow(clippy::ptr_offset_with_cast)]
|
218 |
let (deposit_reserve, deposited_amount, market_value) =
|
228 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
229 |
#[allow(clippy::ptr_offset_with_cast)]
|
230 |
let (borrow_reserve, cumulative_borrow_rate_wads, borrowed_amount_wads, market_value) =
|
245 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
246 |
#[allow(clippy::ptr_offset_with_cast)]
|
247 |
let (
|
55 |
let output = array_mut_ref![output, 0, LENDING_MARKET_LEN];
|
56 |
#[allow(clippy::ptr_offset_with_cast)]
|
57 |
let (
|
86 |
let input = array_ref![input, 0, LENDING_MARKET_LEN];
|
87 |
#[allow(clippy::ptr_offset_with_cast)]
|
88 |
let (
|
71 |
fn pack_coption_key(src: &COption<Pubkey>, dst: &mut [u8; 4 + PUBKEY_BYTES]) {
|
72 |
#[allow(clippy::ptr_offset_with_cast)]
|
73 |
let (tag, body) = mut_array_refs![dst, 4, PUBKEY_BYTES];
|
86 |
fn unpack_coption_key(src: &[u8; 4 + PUBKEY_BYTES]) -> Result<COption<Pubkey>, ProgramError> {
|
87 |
#[allow(clippy::ptr_offset_with_cast)]
|
88 |
let (tag, body) = array_refs![src, 4, PUBKEY_BYTES];
|
171 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
172 |
#[allow(clippy::ptr_offset_with_cast)]
|
173 |
let (
|
219 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
220 |
#[allow(clippy::ptr_offset_with_cast)]
|
221 |
let (deposit_reserve, deposited_amount, market_value) =
|
231 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
232 |
#[allow(clippy::ptr_offset_with_cast)]
|
233 |
let (borrow_reserve, cumulative_borrow_rate_wads, borrowed_amount_wads, market_value) =
|
248 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
249 |
#[allow(clippy::ptr_offset_with_cast)]
|
250 |
let (
|
292 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
293 |
#[allow(clippy::ptr_offset_with_cast)]
|
294 |
let (deposit_reserve, deposited_amount, market_value) =
|
434 |
let output = array_mut_ref![output, 0, RESERVE_LEN];
|
435 |
#[allow(clippy::ptr_offset_with_cast)]
|
436 |
let (
|
49 |
let input = array_ref![input, 0, 33];
|
50 |
#[allow(clippy::ptr_offset_with_cast)]
|
51 |
let (curve_type, calculator) = array_refs![input, 1, 32];
|
66 |
let input = array_ref![input, 0, 64];
|
67 |
#[allow(clippy::ptr_offset_with_cast)]
|
68 |
let (
|
102 |
#[allow(clippy::ptr_offset_with_cast)]
|
103 |
fn try_from(value: &[u8]) -> std::result::Result<Self, Self::Error> {
|
221 |
let src = array_ref![src, 0, 355];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
240 |
let dst = array_mut_ref![dst, 0, 355];
|
241 |
#[allow(clippy::ptr_offset_with_cast)]
|
242 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
227 |
let src = array_ref![src, 0, 355];
|
228 |
#[allow(clippy::ptr_offset_with_cast)]
|
229 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
246 |
let dst = array_mut_ref![dst, 0, 355];
|
247 |
#[allow(clippy::ptr_offset_with_cast)]
|
248 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
209 |
let input = array_ref![input, 0, 33];
|
210 |
#[allow(clippy::ptr_offset_with_cast)]
|
211 |
let (curve_type, calculator) = array_refs![input, 1, 32];
|
161 |
let input = array_ref![input, 0, 64];
|
162 |
#[allow(clippy::ptr_offset_with_cast)]
|
163 |
let (
|
247 |
let input = array_ref![input, 0, 323];
|
248 |
#[allow(clippy::ptr_offset_with_cast)]
|
249 |
let (
|
222 |
let src = array_ref![src, 0, 355];
|
223 |
#[allow(clippy::ptr_offset_with_cast)]
|
224 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
241 |
let dst = array_mut_ref![dst, 0, 355];
|
242 |
#[allow(clippy::ptr_offset_with_cast)]
|
243 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
231 |
let src = array_ref![src, 0, 355];
|
232 |
#[allow(clippy::ptr_offset_with_cast)]
|
233 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
250 |
let dst = array_mut_ref![dst, 0, 355];
|
251 |
#[allow(clippy::ptr_offset_with_cast)]
|
252 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
424 |
let input = array_ref![input, 1, Farm::RAYDIUM_FARM_LEN - 1];
|
425 |
#[allow(clippy::ptr_offset_with_cast)]
|
426 |
let (
|
475 |
let input = array_ref![input, 1, Farm::SABER_FARM_LEN - 1];
|
476 |
#[allow(clippy::ptr_offset_with_cast)]
|
477 |
let (
|
541 |
let input = array_ref![input, 1, Farm::ORCA_FARM_LEN - 1];
|
542 |
#[allow(clippy::ptr_offset_with_cast)]
|
543 |
let (
|
348 |
let input = array_ref![input, 0, FundUserAction::LEN];
|
349 |
#[allow(clippy::ptr_offset_with_cast)]
|
350 |
let (time, amount) = array_refs![input, 8, 8];
|
410 |
let input = array_ref![input, 0, FundUserRequests::LEN];
|
411 |
#[allow(clippy::ptr_offset_with_cast)]
|
412 |
let (
|
487 |
let input = array_ref![input, 0, FundAssets::LEN];
|
488 |
#[allow(clippy::ptr_offset_with_cast)]
|
489 |
let (
|
565 |
let input = array_ref![input, 0, FundCustody::LEN];
|
566 |
#[allow(clippy::ptr_offset_with_cast)]
|
567 |
let (
|
651 |
let input = array_ref![input, 0, FundVault::LEN];
|
652 |
#[allow(clippy::ptr_offset_with_cast)]
|
653 |
let (
|
318 |
let input = array_ref![input, 1, AmmInstruction::ADD_LIQUIDITY_LEN - 1];
|
319 |
#[allow(clippy::ptr_offset_with_cast)]
|
320 |
let (max_token_a_amount, max_token_b_amount) = array_refs![input, 8, 8];
|
338 |
let input = array_ref![input, 1, AmmInstruction::SWAP_LEN - 1];
|
339 |
#[allow(clippy::ptr_offset_with_cast)]
|
340 |
let (token_a_amount_in, token_b_amount_in, min_token_amount_out) =
|
79 |
let output = array_mut_ref![output, 0, LENDING_MARKET_LEN];
|
80 |
#[allow(clippy::ptr_offset_with_cast)]
|
81 |
let (
|
113 |
let input = array_ref![input, 0, LENDING_MARKET_LEN];
|
114 |
#[allow(clippy::ptr_offset_with_cast)]
|
115 |
let (
|
336 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
337 |
#[allow(clippy::ptr_offset_with_cast)]
|
338 |
let (
|
386 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
387 |
#[allow(clippy::ptr_offset_with_cast)]
|
388 |
let (deposit_reserve, deposited_amount, market_value, _padding_deposit) =
|
398 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
399 |
#[allow(clippy::ptr_offset_with_cast)]
|
400 |
let (
|
420 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
421 |
#[allow(clippy::ptr_offset_with_cast)]
|
422 |
let (
|
466 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
467 |
#[allow(clippy::ptr_offset_with_cast)]
|
468 |
let (deposit_reserve, deposited_amount, market_value, _padding_deposit) =
|
730 |
let output = array_mut_ref![output, 0, RESERVE_LEN];
|
731 |
#[allow(clippy::ptr_offset_with_cast)]
|
732 |
let (
|
216 |
let src = array_ref![src, 0, 355];
|
217 |
#[allow(clippy::ptr_offset_with_cast)]
|
218 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
235 |
let dst = array_mut_ref![dst, 0, 355];
|
236 |
#[allow(clippy::ptr_offset_with_cast)]
|
237 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
25 |
while src.len() >= 8 {
|
26 |
#[allow(clippy::ptr_offset_with_cast)]
|
27 |
let (src_word, src_rem) = array_refs![src, 8; ..;];
|
28 |
#[allow(clippy::ptr_offset_with_cast)]
|
29 |
let (dst_word, dst_rem) = mut_array_refs![dst, 8; ..;];
|
99 |
}
|
100 |
#[allow(clippy::ptr_offset_with_cast)]
|
101 |
let (offset, content) = array_refs![instruction_data, 8; ..;];
|
221 |
let src = array_ref![src, 0, 355];
|
222 |
#[allow(clippy::ptr_offset_with_cast)]
|
223 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
240 |
let dst = array_mut_ref![dst, 0, 355];
|
241 |
#[allow(clippy::ptr_offset_with_cast)]
|
242 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
227 |
let src = array_ref![src, 0, 355];
|
228 |
#[allow(clippy::ptr_offset_with_cast)]
|
229 |
let (m, n, is_initialized, signers_flat) = array_refs![src, 1, 1, 1, 32 * MAX_SIGNERS];
|
246 |
let dst = array_mut_ref![dst, 0, 355];
|
247 |
#[allow(clippy::ptr_offset_with_cast)]
|
248 |
let (m, n, is_initialized, signers_flat) = mut_array_refs![dst, 1, 1, 1, 32 * MAX_SIGNERS];
|
74 |
let output = array_mut_ref![output, 0, LENDING_MARKET_LEN];
|
75 |
#[allow(clippy::ptr_offset_with_cast)]
|
76 |
let (
|
105 |
let input = array_ref![input, 0, LENDING_MARKET_LEN];
|
106 |
#[allow(clippy::ptr_offset_with_cast)]
|
107 |
let (
|
339 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
340 |
#[allow(clippy::ptr_offset_with_cast)]
|
341 |
let (
|
387 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
388 |
#[allow(clippy::ptr_offset_with_cast)]
|
389 |
let (deposit_reserve, deposited_amount, market_value) =
|
399 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
400 |
#[allow(clippy::ptr_offset_with_cast)]
|
401 |
let (borrow_reserve, cumulative_borrow_rate_wads, borrowed_amount_wads, market_value) =
|
416 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
417 |
#[allow(clippy::ptr_offset_with_cast)]
|
418 |
let (
|
460 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
461 |
#[allow(clippy::ptr_offset_with_cast)]
|
462 |
let (deposit_reserve, deposited_amount, market_value) =
|
725 |
let output = array_mut_ref![output, 0, RESERVE_LEN];
|
726 |
#[allow(clippy::ptr_offset_with_cast)]
|
727 |
let (
|
212 |
let input = array_ref![input, 0, 33];
|
213 |
#[allow(clippy::ptr_offset_with_cast)]
|
214 |
let (curve_type, calculator) = array_refs![input, 1, 32];
|
161 |
let input = array_ref![input, 0, 64];
|
162 |
#[allow(clippy::ptr_offset_with_cast)]
|
163 |
let (
|
216 |
let input = array_ref![input, 0, 323];
|
217 |
#[allow(clippy::ptr_offset_with_cast)]
|
218 |
let (
|
36 |
let input = array_ref![input, 0, 64];
|
37 |
#[allow(clippy::ptr_offset_with_cast)]
|
38 |
let (
|
82 |
let input = array_ref![input, 0, 395];
|
83 |
#[allow(clippy::ptr_offset_with_cast)]
|
84 |
let (
|
37 |
clippy::assign_op_pattern,
|
38 |
clippy::ptr_offset_with_cast
|
39 |
)]
|
75 |
#[allow(clippy::ptr_offset_with_cast)]
|
76 |
#[allow(clippy::assign_op_pattern)]
|
70 |
mod entry;
|
71 |
#[allow(clippy::ptr_offset_with_cast)]
|
72 |
#[allow(clippy::assign_op_pattern)]
|
356 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
357 |
#[allow(clippy::ptr_offset_with_cast)]
|
358 |
let (
|
406 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
407 |
#[allow(clippy::ptr_offset_with_cast)]
|
408 |
let (deposit_reserve, deposited_amount, market_value, _padding_deposit) =
|
418 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
419 |
#[allow(clippy::ptr_offset_with_cast)]
|
420 |
let (
|
440 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
441 |
#[allow(clippy::ptr_offset_with_cast)]
|
442 |
let (
|
486 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
487 |
#[allow(clippy::ptr_offset_with_cast)]
|
488 |
let (deposit_reserve, deposited_amount, market_value, _padding_deposit) =
|
417 |
let output = array_mut_ref![dst, 0, OBLIGATION_LEN];
|
418 |
#[allow(clippy::ptr_offset_with_cast)]
|
419 |
let (
|
491 |
let deposits_flat = array_mut_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
492 |
#[allow(clippy::ptr_offset_with_cast)]
|
493 |
let (deposit_reserve, deposited_amount, market_value) =
|
503 |
let borrows_flat = array_mut_ref![data_flat, offset, OBLIGATION_LIQUIDITY_LEN];
|
504 |
#[allow(clippy::ptr_offset_with_cast)]
|
505 |
let (borrow_reserve, cumulative_borrow_rate_wads, borrowed_amount_wads, market_value) =
|
520 |
let input = array_ref![src, 0, OBLIGATION_LEN];
|
521 |
#[allow(clippy::ptr_offset_with_cast)]
|
522 |
let (
|
585 |
let deposits_flat = array_ref![data_flat, offset, OBLIGATION_COLLATERAL_LEN];
|
586 |
#[allow(clippy::ptr_offset_with_cast)]
|
587 |
let (deposit_reserve, deposited_amount, market_value) =
|
392 |
pub(crate) unsafe fn next_entry(&self) -> *const u8 {
|
393 |
#[allow(clippy::ptr_offset_with_cast)]
|
394 |
self.char_ptr().add(round_up_to(
|
203 |
#![allow(clippy::type_complexity)]
|
204 |
#![allow(clippy::ptr_offset_with_cast)]
|
205 |
#![allow(clippy::assertions_on_constants)]
|
4 |
#![allow(clippy::assign_op_pattern)]
|
5 |
#![allow(clippy::ptr_offset_with_cast)]
|
6 |
#![allow(clippy::manual_range_contains)]
|
1 |
#![allow(clippy::assign_op_pattern)]
|
2 |
#![allow(clippy::ptr_offset_with_cast)]
|
4 |
#![allow(clippy::assign_op_pattern)]
|
5 |
#![allow(clippy::ptr_offset_with_cast)]
|
6 |
#![allow(clippy::manual_range_contains)]
|
31 |
//! GPL-3.0
|
32 |
#![allow(clippy::ptr_offset_with_cast)]
|
33 |
#![allow(clippy::assign_op_pattern)]
|
67 |
#![allow(clippy::transmute_ptr_to_ptr)]
|
68 |
#![allow(clippy::ptr_offset_with_cast)]
|
69 |
#![allow(clippy::assign_op_pattern)]
|
379 |
clippy::or_fun_call,
|
380 |
clippy::ptr_offset_with_cast,
|
381 |
clippy::from_over_into,
|
2 |
//! The base implementation is derived from https://github.com/RustCrypto/hashes/tree/master/md4.
|
3 |
#![allow(clippy::ptr_offset_with_cast)]
|
4 |
#![allow(clippy::assign_op_pattern)]
|
5 |
#![allow(clippy::ptr_offset_with_cast)]
|
6 |
#![allow(clippy::manual_range_contains)]
|
1 |
#![allow(clippy::ptr_offset_with_cast)] // glib_wrapper emits these
|
2 |
#![allow(missing_docs)] // glib_wrapper currently makes it impossible to put docs (or attribs!) on the class struct
|
3 |
clippy::manual_range_contains,
|
4 |
clippy::ptr_offset_with_cast,
|
5 |
clippy::format_in_format_args
|
1 |
#![allow(clippy::ptr_offset_with_cast, clippy::assign_op_pattern)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
2 |
// which as far as I am aware are all smaller than isize::MAX
|
3 |
#![allow(clippy::ptr_offset_with_cast)]
|
1 |
#![warn(missing_docs)]
|
2 |
#![allow(clippy::ptr_offset_with_cast)]
|
3 |
//! Persistence Storage for default, use `sled` as backend db.
|
1 |
#![allow(clippy::ptr_offset_with_cast)]
|
2 |
#![warn(missing_docs)]
|
1 |
#![allow(non_snake_case, non_upper_case_globals, clippy::ptr_offset_with_cast)]
|
2 |
use std::convert::TryFrom;
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
10 |
#![allow(clippy::assign_op_pattern)]
|
11 |
#![allow(clippy::ptr_offset_with_cast)]
|
12 |
#![allow(clippy::reversed_empty_ranges)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
4 |
#![allow(clippy::assign_op_pattern)]
|
5 |
#![allow(clippy::ptr_offset_with_cast)]
|
6 |
#![allow(clippy::manual_range_contains)]
|
4 |
#![allow(clippy::assign_op_pattern)]
|
5 |
#![allow(clippy::ptr_offset_with_cast)]
|
6 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::assign_op_pattern)]
|
12 |
#![allow(clippy::ptr_offset_with_cast)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
16 |
#![allow(clippy::assign_op_pattern)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
2 |
#![allow(clippy::assign_op_pattern)]
|
3 |
#![allow(clippy::ptr_offset_with_cast)]
|
4 |
#![allow(clippy::manual_range_contains)]
|
12 |
#![allow(clippy::assign_op_pattern)]
|
13 |
#![allow(clippy::ptr_offset_with_cast)]
|
14 |
#![allow(clippy::reversed_empty_ranges)]
|
2 |
#![allow(clippy::assign_op_pattern)]
|
3 |
#![allow(clippy::ptr_offset_with_cast)]
|