mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
Add missing_const_for_fn clippy lint (#8498)
This commit is contained in:
@ -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() {
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
mod trace;
|
||||
|
||||
fn main() {}
|
||||
const fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user