diff --git a/token/program-2022/src/extension/mod.rs b/token/program-2022/src/extension/mod.rs index 00e85af8e4f..5e840959320 100644 --- a/token/program-2022/src/extension/mod.rs +++ b/token/program-2022/src/extension/mod.rs @@ -872,9 +872,7 @@ fn unpack_type_and_tlv_data_with_check< fn unpack_type_and_tlv_data( rest: &mut [u8], ) -> Result<(&mut [u8], &mut [u8]), ProgramError> { - unpack_type_and_tlv_data_with_check::(rest, |account_type| { - check_account_type::(account_type) - }) + unpack_type_and_tlv_data_with_check::(rest, check_account_type::) } fn unpack_uninitialized_type_and_tlv_data(