Skip to content

Commit

Permalink
lints: update clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XOR-op committed Feb 8, 2024
1 parent 78238c8 commit de6b370
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions boltconn/src/intercept/script_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl ScriptEngine {
status,
body,
};
let r = match ctx.with(|ctx| -> Result<HttpData, rquickjs::Error> {
let eval_result = ctx.with(|ctx| -> Result<HttpData, rquickjs::Error> {
// init console
let cls = Class::instance(
ctx.clone(),
Expand Down Expand Up @@ -186,7 +186,8 @@ impl ScriptEngine {
Err(e)
}
}
}) {
});
let r = match eval_result {
Err(e) => {
tracing::warn!(
"Failed to run script {} for {}: {}",
Expand Down

0 comments on commit de6b370

Please sign in to comment.