mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
Add missing_const_for_fn clippy lint (#8498)
This commit is contained in:
@@ -149,7 +149,7 @@ pub struct BlockExecutionInput<'a, Block> {
|
||||
|
||||
impl<'a, Block> BlockExecutionInput<'a, Block> {
|
||||
/// Creates a new input.
|
||||
pub fn new(block: &'a Block, total_difficulty: U256) -> Self {
|
||||
pub const fn new(block: &'a Block, total_difficulty: U256) -> Self {
|
||||
Self { block, total_difficulty }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user