Skip to content

Commit

Permalink
Simplify passing function
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Mar 5, 2024
1 parent 7060490 commit c8297ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions token/program-2022/src/extension/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,7 @@ fn unpack_type_and_tlv_data_with_check<
fn unpack_type_and_tlv_data<S: BaseState>(
rest: &mut [u8],
) -> Result<(&mut [u8], &mut [u8]), ProgramError> {
unpack_type_and_tlv_data_with_check::<S, _>(rest, |account_type| {
check_account_type::<S>(account_type)
})
unpack_type_and_tlv_data_with_check::<S, _>(rest, check_account_type::<S>)
}

fn unpack_uninitialized_type_and_tlv_data<S: BaseState>(
Expand Down

0 comments on commit c8297ef

Please sign in to comment.