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);