Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Oct 13, 2023
1 parent c0de676 commit f994c69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rust/sealevel/client/src/igp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn get_context_salt(context: Option<&String>) -> H256 {
ethers::utils::keccak256(c.as_bytes()).into()
}
})
.unwrap_or_else(|| H256::zero())
.unwrap_or_else(H256::zero)
}

fn get_context_dir_name(context: Option<&String>) -> &str {
Expand Down Expand Up @@ -433,11 +433,12 @@ fn init_and_configure_igp_account(
let (igp_account_pda, _igp_account_bump) =
Pubkey::find_program_address(hyperlane_sealevel_igp::igp_pda_seeds!(salt), &program_id);

if let None = ctx
if ctx
.client
.get_account_with_commitment(&igp_account_pda, ctx.commitment)
.unwrap()
.value
.is_none()
{
let instruction = hyperlane_sealevel_igp::instruction::init_igp_instruction(
program_id,
Expand Down Expand Up @@ -514,11 +515,12 @@ fn init_and_configure_overhead_igp_account(
&program_id,
);

if let None = ctx
if ctx
.client
.get_account_with_commitment(&overhead_igp_account, ctx.commitment)
.unwrap()
.value
.is_none()
{
let instruction = hyperlane_sealevel_igp::instruction::init_overhead_igp_instruction(
program_id,
Expand Down

0 comments on commit f994c69

Please sign in to comment.