From 8cb5fc3ee02c0465bb8dbfbf015fffaa3fa179fd Mon Sep 17 00:00:00 2001 From: Andreas Bigger Date: Sun, 1 Feb 2026 19:19:34 -0500 Subject: [PATCH] docs: add backticks for clippy doc_markdown lint --- crates/config/src/lib.rs | 2 +- crates/rpc/src/codec.rs | 8 ++++---- crates/traits/README.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index e689060..9e2fe29 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -198,7 +198,7 @@ impl Default for RateLimitConfig { /// Maps RPC methods to backend groups or blocks them entirely. #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub struct RouteConfig { - /// Method name or prefix (e.g., "eth_call" or "eth_"). + /// Method name or prefix (e.g., `eth_call` or `eth_`). pub method: String, /// Target group name or "block" to reject the method. pub target: String, diff --git a/crates/rpc/src/codec.rs b/crates/rpc/src/codec.rs index d02de4e..f336c02 100644 --- a/crates/rpc/src/codec.rs +++ b/crates/rpc/src/codec.rs @@ -227,7 +227,7 @@ impl RpcCodec { &self.config } - /// Parse raw bytes into a ParsedRequestPacket, enforcing size limits. + /// Parse raw bytes into a `ParsedRequestPacket`, enforcing size limits. /// /// This parses the JSON and validates structure. Use this when you need /// to inspect the request method or parameters. @@ -262,7 +262,7 @@ impl RpcCodec { self.decode(bytes.as_ref()) } - /// Serialize a ParsedResponsePacket to bytes. + /// Serialize a `ParsedResponsePacket` to bytes. /// /// # Errors /// @@ -276,7 +276,7 @@ impl RpcCodec { Ok(Bytes::from(json)) } - /// Serialize a single ParsedResponse to bytes. + /// Serialize a single `ParsedResponse` to bytes. /// /// # Errors /// @@ -298,7 +298,7 @@ impl RpcCodec { Ok(Bytes::from(json)) } - /// Parse raw bytes into a ParsedRequestPacket. + /// Parse raw bytes into a `ParsedRequestPacket`. fn parse_request_packet(&self, bytes: &[u8]) -> Result { // Trim leading whitespace to check if it starts with [ (batch) or { (single) let trimmed = bytes.iter().skip_while(|b| b.is_ascii_whitespace()).copied().next(); diff --git a/crates/traits/README.md b/crates/traits/README.md index 6fc48c8..d3df66c 100644 --- a/crates/traits/README.md +++ b/crates/traits/README.md @@ -5,7 +5,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Core trait definitions for Roxy components including Backend, Cache, -RateLimiter, LoadBalancer, and runtime abstractions for spawning, +`RateLimiter`, `LoadBalancer`, and runtime abstractions for spawning, clocks, and metrics. ## License