summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock4
-rw-r--r--core/Cargo.toml2
-rw-r--r--serde_v8/Cargo.toml2
-rw-r--r--serde_v8/ser.rs8
4 files changed, 8 insertions, 8 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 87841d8aa..aaff2475f 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 2a2ab8a97..82ceab2a0 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 bf0a5fc5f..f497d9693 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 3f8ad3b32..615c9b782 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<T: ?Sized + Serialize>(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.