summaryrefslogtreecommitdiff
path: root/serde_v8
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-10-07 05:51:56 +0200
committerGitHub <noreply@github.com>2022-10-07 09:21:56 +0530
commit5733de8a2e1e9bd821733f530a33d9a6c1f5c460 (patch)
treebc5356f08349e6238357431de75e363febe19845 /serde_v8
parentc27234888f3d93aee842e8b30912512867071cb9 (diff)
chore: upgrade rusty_v8 to 0.52.0 (#16183)
Diffstat (limited to 'serde_v8')
-rw-r--r--serde_v8/Cargo.toml2
-rw-r--r--serde_v8/ser.rs8
2 files changed, 5 insertions, 5 deletions
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.