From 5733de8a2e1e9bd821733f530a33d9a6c1f5c460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 7 Oct 2022 05:51:56 +0200 Subject: [PATCH] chore: upgrade rusty_v8 to 0.52.0 (#16183) --- Cargo.lock | 4 ++-- core/Cargo.toml | 2 +- serde_v8/Cargo.toml | 2 +- serde_v8/ser.rs | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 87841d8aac..aaff2475f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5464,9 +5464,9 @@ dependencies = [ [[package]] name = "v8" -version = "0.51.0" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e72791f754a6517e86d88e4521baad3a7d428ce54e266ba560b8747b2a99b946" +checksum = "44e483583f1b8da53083a47335afa9b7196f35cb91f92d78452bf56508121da0" dependencies = [ "bitflags", "fslock", diff --git a/core/Cargo.toml b/core/Cargo.toml index 2a2ab8a978..82ceab2a0f 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -33,7 +33,7 @@ serde_json = { version = "1.0.79", features = ["preserve_order"] } serde_v8 = { version = "0.65.0", path = "../serde_v8" } sourcemap = "6.1" url = { version = "2.3.1", features = ["serde", "expose_internals"] } -v8 = { version = "0.51.0", default-features = false } +v8 = { version = "0.52.0", default-features = false } [[example]] name = "http_bench_json_ops" diff --git a/serde_v8/Cargo.toml b/serde_v8/Cargo.toml index bf0a5fc5f9..f497d96934 100644 --- a/serde_v8/Cargo.toml +++ b/serde_v8/Cargo.toml @@ -18,7 +18,7 @@ derive_more = "0.99.17" serde = { version = "1.0.136", features = ["derive"] } serde_bytes = "0.11" smallvec = { version = "1.8", features = ["union"] } -v8 = { version = "0.51.0", default-features = false } +v8 = { version = "0.52.0", default-features = false } [dev-dependencies] bencher = "0.1" diff --git a/serde_v8/ser.rs b/serde_v8/ser.rs index 3f8ad3b321..615c9b782b 100644 --- a/serde_v8/ser.rs +++ b/serde_v8/ser.rs @@ -439,7 +439,7 @@ impl<'a, 'b, 'c> ser::Serializer for Serializer<'a, 'b, 'c> { } fn serialize_bool(self, v: bool) -> JsResult<'a> { - Ok(v8::Boolean::new(&mut self.scope.borrow_mut(), v).into()) + Ok(v8::Boolean::new(&mut *self.scope.borrow_mut(), v).into()) } fn serialize_char(self, v: char) -> JsResult<'a> { @@ -464,7 +464,7 @@ impl<'a, 'b, 'c> ser::Serializer for Serializer<'a, 'b, 'c> { } fn serialize_none(self) -> JsResult<'a> { - Ok(v8::null(&mut self.scope.borrow_mut()).into()) + Ok(v8::null(&mut *self.scope.borrow_mut()).into()) } fn serialize_some(self, value: &T) -> JsResult<'a> { @@ -472,11 +472,11 @@ impl<'a, 'b, 'c> ser::Serializer for Serializer<'a, 'b, 'c> { } fn serialize_unit(self) -> JsResult<'a> { - Ok(v8::null(&mut self.scope.borrow_mut()).into()) + Ok(v8::null(&mut *self.scope.borrow_mut()).into()) } fn serialize_unit_struct(self, _name: &'static str) -> JsResult<'a> { - Ok(v8::null(&mut self.scope.borrow_mut()).into()) + Ok(v8::null(&mut *self.scope.borrow_mut()).into()) } /// For compatibility with serde-json, serialises unit variants as "Variant" strings.