Skip to content

Commit 3c6abbf

Browse files
committed
Update hint import
1 parent 0f5dbb7 commit 3c6abbf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

p-token/src/processor/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ use {
22
core::{slice::from_raw_parts, str::from_utf8_unchecked},
33
pinocchio::{
44
account_info::AccountInfo,
5-
hint::likely,
6-
hint::unlikely,
5+
hint::{likely, unlikely},
76
program_error::ProgramError,
87
pubkey::{pubkey_eq, Pubkey},
98
syscalls::sol_memcpy_,

p-token/src/processor/shared/transfer.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use {
22
crate::processor::{check_account_owner, validate_owner},
33
pinocchio::{
4-
5-
account_info::AccountInfo, hint::unlikely, program_error::ProgramError, pubkey::pubkey_eq, ProgramResult,
6-
,
4+
account_info::AccountInfo, hint::unlikely, program_error::ProgramError, pubkey::pubkey_eq,
5+
ProgramResult,
76
},
87
pinocchio_token_interface::{
98
error::TokenError,

p-token/src/processor/unwrap_lamports.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ use {
22
super::validate_owner,
33
crate::processor::{check_account_owner, unpack_amount},
44
pinocchio::{
5-
account_info::AccountInfo, hint::likely, program_error::ProgramError, ProgramResult,
5+
account_info::AccountInfo,
6+
hint::{likely, unlikely},
7+
program_error::ProgramError,
8+
ProgramResult,
69
},
710
pinocchio_token_interface::{
811
error::TokenError,
912
state::{account::Account, load_mut},
10-
unlikely,
1113
},
1214
};
1315

0 commit comments

Comments
 (0)