From ba7daeddf0a6f743f025fb168cc3c74d6e027a0e Mon Sep 17 00:00:00 2001 From: caibirdme Date: Wed, 23 Oct 2024 09:50:16 +0800 Subject: [PATCH] fix: clippy --- src/storage/ck/common.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/storage/ck/common.rs b/src/storage/ck/common.rs index 024d5ab..4b0f97a 100644 --- a/src/storage/ck/common.rs +++ b/src/storage/ck/common.rs @@ -115,9 +115,8 @@ pub(crate) async fn send_query( error!("fail to read ck response: {}", e); e })?; - let resp: RecordWarpper = serde_json::from_str(&res).map_err(|e| { + let resp: RecordWarpper = serde_json::from_str(&res).inspect_err(|_| { error!("fail to parse ck response: {}", res); - e })?; Ok(resp.data) }