From 8094d5d97170ffadb765d17134b39f0d079c9bab Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 13 Sep 2021 23:34:17 +0200 Subject: [PATCH] fix(json): relax lifetime for json_object (#778) Amongst other things this will enable serde_v8 to print JSON object dumps --- src/json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.rs b/src/json.rs index 29354337..44bd62e1 100644 --- a/src/json.rs +++ b/src/json.rs @@ -33,7 +33,7 @@ pub fn parse<'s>( /// it as string if successful. pub fn stringify<'s>( scope: &mut HandleScope<'s>, - json_object: Local<'s, Value>, + json_object: Local<'_, Value>, ) -> Option> { unsafe { scope.cast_local(|sd| {