fix(ci): add missing const fn (#8822)

This commit is contained in:
joshieDo
2024-06-14 12:07:39 +02:00
committed by GitHub
parent bc15e6c03a
commit fc770423b3
34 changed files with 40 additions and 40 deletions

View File

@@ -31,7 +31,7 @@ pub struct NodeBuilderWithTypes<T: FullNodeTypes> {
impl<T: FullNodeTypes> NodeBuilderWithTypes<T> {
/// Creates a new instance of the node builder with the given configuration and types.
pub fn new(config: NodeConfig, database: T::DB) -> Self {
pub const fn new(config: NodeConfig, database: T::DB) -> Self {
Self { config, adapter: NodeTypesAdapter::new(database) }
}