From 6a5dca9214e2d395c0b4d1a833235727b0c3129e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=A0=95=EC=9D=B8?= <51292893+jannabiforever@users.noreply.github.com> Date: Thu, 18 Jul 2024 19:04:12 +0900 Subject: [PATCH] resolved a TODO: map_err to inspect error (#4271) Co-authored-by: Tobie Morgan Hitchcock --- core/src/dbs/executor.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/dbs/executor.rs b/core/src/dbs/executor.rs index f1a9fcbb..8ac4cf31 100644 --- a/core/src/dbs/executor.rs +++ b/core/src/dbs/executor.rs @@ -426,11 +426,9 @@ impl<'a> Executor<'a> { let res = Response { // Get the statement end time time: now.elapsed(), - // TODO: Replace with `inspect_err` once stable. - result: res.map_err(|e| { + result: res.inspect_err(|_| { // Mark the error. self.err = true; - e }), query_type: match (is_stm_live, is_stm_kill) { (true, _) => QueryType::Live,