Skip to content

Commit f9354d1

Browse files
committed
Add unsafe qualifier
1 parent c149143 commit f9354d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

p-token/src/processor/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,15 @@ fn check_account_owner(account_info: &AccountInfo) -> ProgramResult {
8686

8787
/// Validates owner(s) are present.
8888
///
89-
/// Note that `owner_account_info` will be immutable borrowed when it represents
89+
///
90+
/// # Safety
91+
///
92+
/// The `owner_account_info` will be immutable borrowed when it represents
9093
/// a multisig account, therefore it should not have any mutable borrows when
9194
/// calling this function.
9295
#[inline(always)]
9396
#[allow(clippy::arithmetic_side_effects)]
94-
fn validate_owner(
97+
unsafe fn validate_owner(
9598
expected_owner: &Pubkey,
9699
owner_account_info: &AccountInfo,
97100
signers: &[AccountInfo],

0 commit comments

Comments
 (0)