From f7b6b0d27df9c13d0c922a007c5533760a1c23cf Mon Sep 17 00:00:00 2001 From: James Date: Thu, 1 Feb 2024 13:26:13 -0800 Subject: [PATCH] lint: clippy --- crates/json-rpc/src/request.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/json-rpc/src/request.rs b/crates/json-rpc/src/request.rs index 549951da03f..d1cb8846a14 100644 --- a/crates/json-rpc/src/request.rs +++ b/crates/json-rpc/src/request.rs @@ -162,10 +162,7 @@ impl SerializedRequest { } /// Returns `true` if the request is a subscription. pub const fn is_subscription(&self) -> bool { - match self.method().as_bytes() { - b"eth_subscribe" => true, - _ => false, - } + matches!(self.method().as_bytes(), b"eth_subscribe") } /// Returns the serialized request.