From de6b37032aaaf57899037d13bfb3af666ddf87b5 Mon Sep 17 00:00:00 2001 From: XOR-op <17672363+XOR-op@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:14:41 -0500 Subject: [PATCH] lints: update clippy --- boltconn/src/intercept/script_engine.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boltconn/src/intercept/script_engine.rs b/boltconn/src/intercept/script_engine.rs index a708d05..5e022d3 100644 --- a/boltconn/src/intercept/script_engine.rs +++ b/boltconn/src/intercept/script_engine.rs @@ -152,7 +152,7 @@ impl ScriptEngine { status, body, }; - let r = match ctx.with(|ctx| -> Result { + let eval_result = ctx.with(|ctx| -> Result { // init console let cls = Class::instance( ctx.clone(), @@ -186,7 +186,8 @@ impl ScriptEngine { Err(e) } } - }) { + }); + let r = match eval_result { Err(e) => { tracing::warn!( "Failed to run script {} for {}: {}",