From d3bd555c58649c91bab28fb02662db0e048fb4b0 Mon Sep 17 00:00:00 2001 From: Danielle Jenkins Date: Wed, 12 Mar 2025 17:53:28 -0700 Subject: [PATCH] Clippy fixes --- src/tools/docs/docs.rs | 6 ++++++ tests/integration_tests.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tools/docs/docs.rs b/src/tools/docs/docs.rs index 18051e8..9931e64 100644 --- a/src/tools/docs/docs.rs +++ b/src/tools/docs/docs.rs @@ -17,6 +17,12 @@ pub struct DocCache { cache: Arc>>, } +impl Default for DocCache { + fn default() -> Self { + Self::new() + } +} + impl DocCache { pub fn new() -> Self { Self { diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 1c593d9..c1631df 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -24,7 +24,7 @@ async fn test_doc_router_initialization() { #[test] fn test_jsonrpc_codec_functionality() { - let mut codec = JsonRpcFrameCodec::default(); + let mut codec = JsonRpcFrameCodec; let json_rpc = r#"{"jsonrpc":"2.0","method":"lookup_crate","params":{"crate_name":"tokio"},"id":1}"#; let mut buffer = tokio_util::bytes::BytesMut::from(json_rpc);