Skip to content

Commit 4b1e211

Browse files
committed
solana: change map_or to map_or_else for lazy evaluation
1 parent bbde32a commit 4b1e211

File tree

1 file changed

+1
-1
lines changed
  • solana/programs/ntt-quoter/src/processor

1 file changed

+1
-1
lines changed

solana/programs/ntt-quoter/src/processor/admin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn set_assistant(ctx: Context<SetAssistant>) -> Result<()> {
8484
.accounts
8585
.assistant
8686
.as_deref()
87-
.map_or(Pubkey::default(), |val| val.key());
87+
.map_or_else(|| { Pubkey::default() }, |val| val.key());
8888
Ok(())
8989
}
9090

0 commit comments

Comments
 (0)