Skip to content

Commit

Permalink
lint: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Feb 1, 2024
1 parent 16144e6 commit f7b6b0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/json-rpc/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f7b6b0d

Please sign in to comment.