We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8212eac commit f2ca7b5Copy full SHA for f2ca7b5
crates/extensions/tedge_gen_mapper/src/js_runtime.rs
@@ -273,12 +273,12 @@ impl<'js> JsModules<'js> {
273
}
274
275
impl LoadError {
276
- fn from_js<'js>(ctx: &Ctx<'js>, err: rquickjs::Error) -> Self {
+ fn from_js(ctx: &Ctx<'_>, err: rquickjs::Error) -> Self {
277
if let Some(ex) = ctx.catch().as_exception() {
278
let err = anyhow::anyhow!("{ex}");
279
err.context("JS raised exception").into()
280
} else {
281
- let err = CaughtError::from_error(&ctx, err);
+ let err = CaughtError::from_error(ctx, err);
282
let err = anyhow::anyhow!("{err}");
283
err.context("JS runtime error").into()
284
0 commit comments