chore: set clippy check for const fn to warn (#15777)

This commit is contained in:
Federico Gimenez
2025-04-16 19:59:36 +02:00
committed by GitHub
parent 3bddd3cc8e
commit ddc101f863
115 changed files with 303 additions and 281 deletions

View File

@@ -421,7 +421,7 @@ impl OpAddOnsBuilder {
}
/// Configure if transaction conditional should be enabled.
pub fn with_enable_tx_conditional(mut self, enable_tx_conditional: bool) -> Self {
pub const fn with_enable_tx_conditional(mut self, enable_tx_conditional: bool) -> Self {
self.enable_tx_conditional = enable_tx_conditional;
self
}
@@ -505,7 +505,7 @@ impl<T> Default for OpPoolBuilder<T> {
impl<T> OpPoolBuilder<T> {
/// Sets the `enable_tx_conditional` flag on the pool builder.
pub fn with_enable_tx_conditional(mut self, enable_tx_conditional: bool) -> Self {
pub const fn with_enable_tx_conditional(mut self, enable_tx_conditional: bool) -> Self {
self.enable_tx_conditional = enable_tx_conditional;
self
}