feat: updated to 2024 edition rust
This commit is contained in:
parent
b4463f2b78
commit
9e76dbbcad
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "notion-client"
|
name = "notion-client"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[features]
|
[features]
|
||||||
|
|
|
||||||
|
|
@ -1126,7 +1126,7 @@ where
|
||||||
.map_err(D::Error::custom)?
|
.map_err(D::Error::custom)?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(key, value)| {
|
.map(|(key, value)| {
|
||||||
if let Value::Object(ref mut object) = value {
|
if let Value::Object(object) = value {
|
||||||
// Notion sometimes sends an empty object when it means "null", so we gotta do it's homework
|
// Notion sometimes sends an empty object when it means "null", so we gotta do it's homework
|
||||||
for value in object.values_mut() {
|
for value in object.values_mut() {
|
||||||
if value == &mut json!({}) {
|
if value == &mut json!({}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue