Clippy fixes
This commit is contained in:
		
							parent
							
								
									19c35abc43
								
							
						
					
					
						commit
						d3bd555c58
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -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 { | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Danielle Jenkins
						Danielle Jenkins