From ac6a4ff386df78ed0e66dba70860c9d16da81bbe Mon Sep 17 00:00:00 2001 From: James Liu Date: Mon, 19 Feb 2024 00:11:29 -0800 Subject: [PATCH] Update to toml_edit 0.22 (#11973) # Objective Do #11829, but without breaking CI. ## Solution Update to `toml_edit` v0.22, replace the deprecated function with the the newer equivalent. --- crates/bevy_macro_utils/Cargo.toml | 2 +- tools/build-templated-pages/Cargo.toml | 2 +- tools/build-templated-pages/src/features.rs | 2 +- tools/example-showcase/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index 13e7beefa6..ce63a26217 100644 --- a/crates/bevy_macro_utils/Cargo.toml +++ b/crates/bevy_macro_utils/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" keywords = ["bevy"] [dependencies] -toml_edit = { version = "0.21", default-features = false, features = ["parse"] } +toml_edit = { version = "0.22", default-features = false, features = ["parse"] } syn = "2.0" quote = "1.0" rustc-hash = "1.0" diff --git a/tools/build-templated-pages/Cargo.toml b/tools/build-templated-pages/Cargo.toml index 547aaa5d22..a4a0668bbe 100644 --- a/tools/build-templated-pages/Cargo.toml +++ b/tools/build-templated-pages/Cargo.toml @@ -7,7 +7,7 @@ publish = false license = "MIT OR Apache-2.0" [dependencies] -toml_edit = { version = "0.21", default-features = false, features = ["parse"] } +toml_edit = { version = "0.22", default-features = false, features = ["parse"] } tera = "1.15" serde = { version = "1.0", features = ["derive"] } bitflags = "2.3" diff --git a/tools/build-templated-pages/src/features.rs b/tools/build-templated-pages/src/features.rs index f9fbd66951..6efdfb5660 100644 --- a/tools/build-templated-pages/src/features.rs +++ b/tools/build-templated-pages/src/features.rs @@ -65,7 +65,7 @@ fn parse_features(panic_on_missing: bool) -> Vec { .as_str() .unwrap() .to_string(); - if let Some(description) = key.decor().prefix() { + if let Some(description) = key.leaf_decor().prefix() { let description = description.as_str().unwrap().to_string(); if !description.starts_with("\n# ") || !description.ends_with('\n') { panic!("Missing description for feature {name}"); diff --git a/tools/example-showcase/Cargo.toml b/tools/example-showcase/Cargo.toml index 8caf553a49..3c1da1cf8b 100644 --- a/tools/example-showcase/Cargo.toml +++ b/tools/example-showcase/Cargo.toml @@ -10,5 +10,5 @@ license = "MIT OR Apache-2.0" xshell = "0.2" clap = { version = "4.0", features = ["derive"] } ron = "0.8" -toml_edit = { version = "0.21", default-features = false, features = ["parse"] } +toml_edit = { version = "0.22", default-features = false, features = ["parse"] } pbr = "1.1"