mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-15 01:14:59 -05:00
chore: set clippy check for const fn to warn (#15777)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user