Skip to content

Commit ec84c72

Browse files
committed
clippy
1 parent 3e2fb2d commit ec84c72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tip-router-operator-cli/src/tx_utils.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use solana_sdk::{instruction::Instruction, pubkey::Pubkey, transaction::Transaction};
22

3-
// Vector of transactions, each containing as many instructions as possible while staying under the size limit
3+
#[allow(clippy::integer_division)]
4+
#[allow(clippy::arithmetic_side_effects)]
5+
#[allow(clippy::manual_div_ceil)]
46
pub fn pack_transactions(
57
instructions: Vec<Instruction>,
68
payer: Pubkey,
@@ -16,7 +18,6 @@ pub fn pack_transactions(
1618
let temp_transaction = Transaction::new_with_payer(&temp_instructions, Some(&payer));
1719
let transaction_size = temp_transaction.message.serialize().len();
1820

19-
#[allow(clippy::manual_div_ceil)]
2021
let estimated_base64_size = (transaction_size * 4 + 2) / 3; // Ceiling division for base64
2122

2223
if estimated_base64_size > max_transaction_size {

0 commit comments

Comments
 (0)