Add missing_const_for_fn clippy lint (#8498)

This commit is contained in:
Thomas Coratger
2024-05-30 11:50:03 +02:00
committed by GitHub
parent 99068198db
commit 3d3f52b2a4
255 changed files with 834 additions and 804 deletions

View File

@ -438,7 +438,7 @@ where
///
/// * `client1` - The first RPC client.
/// * `client2` - The second RPC client.
pub fn new(client1: C1, client2: C2) -> Self {
pub const fn new(client1: C1, client2: C2) -> Self {
Self { client1, client2 }
}
@ -519,7 +519,7 @@ mod tests {
use reth_primitives::BlockNumberOrTag;
use reth_rpc_types::trace::filter::TraceFilterMode;
fn assert_is_stream<St: Stream>(_: &St) {}
const fn assert_is_stream<St: Stream>(_: &St) {}
#[tokio::test]
async fn can_create_block_stream() {

View File

@ -1,3 +1,3 @@
mod trace;
fn main() {}
const fn main() {}