mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Add missing_const_for_fn clippy lint (#8498)
This commit is contained in:
@ -56,7 +56,11 @@ struct NodeState<DB> {
|
||||
}
|
||||
|
||||
impl<DB> NodeState<DB> {
|
||||
fn new(db: DB, network: Option<NetworkHandle>, latest_block: Option<BlockNumber>) -> Self {
|
||||
const fn new(
|
||||
db: DB,
|
||||
network: Option<NetworkHandle>,
|
||||
latest_block: Option<BlockNumber>,
|
||||
) -> Self {
|
||||
Self {
|
||||
db,
|
||||
network,
|
||||
|
||||
Reference in New Issue
Block a user