Skip to content

Commit

Permalink
clippy: Allow elided lifetime has a name in chain_controller
Browse files Browse the repository at this point in the history
warning: elided lifetime has a name
   --> chain/src/chain_controller.rs:127:43
    |
33  | #[cfg_attr(feature = "mock", faux::methods)]
    |                              ------------- lifetime `'m` declared here
...
127 |     pub fn get_orphan_block(&self, store: &ChainDB, hash: &Byte32) -> Option<Arc<BlockView>> {
    |

Signed-off-by: Eval EXEC <[email protected]>
  • Loading branch information
eval-exec committed Mar 1, 2025
1 parent 3ab14e6 commit d3958d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chain/src/chain_controller.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! CKB chain controller.
#![allow(missing_docs)]
#![allow(elided_named_lifetimes)]

use crate::utils::orphan_block_pool::OrphanBlockPool;
use crate::{LonelyBlock, ProcessBlockRequest, RemoteBlock, TruncateRequest, VerifyResult};
Expand Down

0 comments on commit d3958d3

Please sign in to comment.