Skip to content

Commit f49d516

Browse files
committed
formatting according to CI error
1 parent a69f846 commit f49d516

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

p-token/src/entrypoint-runtime-verification.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,9 @@ pub fn test_process_mint_to(
13391339
#[cfg(feature = "assumptions")]
13401340
{
13411341
// Do not execute if adding to the account balance would overflow.
1342-
// shared::mint_to.rs,L68 is based on the assumption that initial_amount <= mint.supply
1343-
// and therefore cannot overflow because the minting itself would already error out.
1342+
// shared::mint_to.rs,L68 is based on the assumption that initial_amount <=
1343+
// mint.supply and therefore cannot overflow because the minting itself
1344+
// would already error out.
13441345
let amount = unsafe { u64::from_le_bytes(*(instruction_data.as_ptr() as *const [u8; 8])) };
13451346
if initial_amount.checked_add(amount).is_none() {
13461347
return Err(ProgramError::Custom(99));
@@ -3946,8 +3947,9 @@ fn test_process_mint_to_checked(
39463947
#[cfg(feature = "assumptions")]
39473948
{
39483949
// Do not execute if adding to the account balance would overflow.
3949-
// shared::mint_to.rs,L68 is based on the assumption that initial_amount <= mint.supply
3950-
// and therefore cannot overflow because the minting itself would already error out.
3950+
// shared::mint_to.rs,L68 is based on the assumption that initial_amount <=
3951+
// mint.supply and therefore cannot overflow because the minting itself
3952+
// would already error out.
39513953
let amount = unsafe { u64::from_le_bytes(*(instruction_data.as_ptr() as *const [u8; 8])) };
39523954
if initial_amount.checked_add(amount).is_none() {
39533955
return Err(ProgramError::Custom(99));

0 commit comments

Comments
 (0)