Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Nov 24, 2023
1 parent c5d1617 commit 9a01809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solana/solana-ibc/programs/solana-ibc/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl ChainInner {
assert!(!finalised);
events::emit(events::NewBlock {
hash: head.calc_hash(),
block: events::block(&head),
block: events::block(head),
})
.map_err(ProgramError::BorshIoError)?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion solana/solana-ibc/programs/solana-ibc/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn emit<'a>(event: impl Into<Event<'a>>) -> Result<(), String> {
pub type CowBlock<'a> = alloc::borrow::Cow<'a, Block>;

#[inline]
pub fn block<'a>(block: &'a crate::chain::Block) -> CowBlock {
pub fn block(block: &crate::chain::Block) -> CowBlock {
CowBlock::Borrowed(bytemuck::TransparentWrapper::wrap_ref(block))
}

Expand Down

0 comments on commit 9a01809

Please sign in to comment.