solana-ibc: add support for witness account #1775
clippy
3 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 3 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.78.0-nightly (268dbbbc4 2024-02-04)
- cargo 1.78.0-nightly (7bb7b5395 2024-01-20)
- clippy 0.1.77 (268dbbb 2024-02-04)
Annotations
Check failure on line 445 in solana/solana-ibc/programs/solana-ibc/src/storage.rs
github-actions / clippy
no method named `with_witness_account` found for struct `solana_trie::TrieAccount<solana_trie::ResizableAccount<'_, '_>>` in the current scope
error[E0599]: no method named `with_witness_account` found for struct `solana_trie::TrieAccount<solana_trie::ResizableAccount<'_, '_>>` in the current scope
--> solana/solana-ibc/programs/solana-ibc/src/storage.rs:445:14
|
444 | trie = trie
| ________________-
445 | | .with_witness_account(witness, &crate::ID)
| | -^^^^^^^^^^^^^^^^^^^^ method not found in `TrieAccount<ResizableAccount<'_, '_>>`
| |_____________|
|
|
= note: the method was found for
- `solana_trie::TrieAccount<D, std::option::Option<std::cell::RefMut<'a, solana_trie::witness::Data>>>`
Check failure on line 258 in solana/solana-ibc/programs/solana-ibc/src/client_state.rs
github-actions / clippy
unreachable statement
error: unreachable statement
--> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:258:9
|
256 | return Ok((timestamp, height));
| ------------------------------ any code following this expression is unreachable
257 | }
258 | let timestamp = self.borrow().chain.head()?.timestamp_ns.get();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
= note: `-D unreachable-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unreachable_code)]`
Check failure on line 242 in solana/solana-ibc/programs/solana-ibc/src/client_state.rs
github-actions / clippy
no function or associated item named `get` found for struct `anchor_lang::prelude::Clock` in the current scope
error[E0599]: no function or associated item named `get` found for struct `anchor_lang::prelude::Clock` in the current scope
--> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:242:68
|
242 | anchor_lang::solana_program::sysvar::clock::Clock::get()
| ^^^ function or associated item not found in `Clock`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
1 + use anchor_lang::prelude::SolanaSysvar;
|