Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvja committed Oct 16, 2024
1 parent 627d114 commit b21baca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions solana/solana-ibc/programs/solana-ibc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ pub mod solana_ibc {
let slot = clock.slot;
let timestamp = clock?.unix_timestamp as u64;

Check failure on line 126 in solana/solana-ibc/programs/solana-ibc/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

the `?` operator can only be applied to values that implement `std::ops::Try`

error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> solana/solana-ibc/programs/solana-ibc/src/lib.rs:126:29 | 126 | let timestamp = clock?.unix_timestamp as u64; | ^^^^^^ the `?` operator cannot be applied to type `anchor_lang::prelude::Clock` | = help: the trait `std::ops::Try` is not implemented for `anchor_lang::prelude::Clock`
storage
.add_local_consensus_state(
slot,
timestamp,
*provable.hash(),
)
.add_local_consensus_state(slot, timestamp, *provable.hash())
.unwrap();
}
ctx.accounts.chain.initialise(
Expand Down

0 comments on commit b21baca

Please sign in to comment.