diff --git a/Cargo.toml b/Cargo.toml index 244abc8..198e529 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "notion-client" version = "0.1.0" -edition = "2021" +edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] diff --git a/src/lib.rs b/src/lib.rs index f2f10eb..87a178c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1126,7 +1126,7 @@ where .map_err(D::Error::custom)? .into_iter() .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 for value in object.values_mut() { if value == &mut json!({}) {