Clippy fixes

This commit is contained in:
Danielle Jenkins 2025-03-12 17:53:28 -07:00
parent 19c35abc43
commit d3bd555c58
2 changed files with 7 additions and 1 deletions

View file

@ -17,6 +17,12 @@ pub struct DocCache {
cache: Arc<Mutex<std::collections::HashMap<String, String>>>,
}
impl Default for DocCache {
fn default() -> Self {
Self::new()
}
}
impl DocCache {
pub fn new() -> Self {
Self {

View file

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