Skip to content

Commit d71d5c8

Browse files
committed
solana: Inline return
1 parent 32d9060 commit d71d5c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

solana/programs/example-native-token-transfers/src/spl_multisig.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ pub struct SplMultisig(spl_token_2022::state::Multisig);
1111

1212
impl AccountDeserialize for SplMultisig {
1313
fn try_deserialize_unchecked(buf: &mut &[u8]) -> anchor_lang::Result<Self> {
14-
spl_token_2022::state::Multisig::unpack(buf)
15-
.map(SplMultisig)
16-
.map_err(Into::into)
14+
Ok(SplMultisig(spl_token_2022::state::Multisig::unpack(buf)?))
1715
}
1816
}
1917

0 commit comments

Comments
 (0)