From 9e76dbbcadb0430cff20be8c863078994853d5a9 Mon Sep 17 00:00:00 2001 From: Bram Dingelstad Date: Wed, 5 Mar 2025 11:00:25 +0100 Subject: [PATCH] feat: updated to 2024 edition rust --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!({}) {