Skip to content

Commit

Permalink
Update to toml_edit 0.22 (#11973)
Browse files Browse the repository at this point in the history
# Objective
Do #11829, but without breaking CI.

## Solution
Update to `toml_edit` v0.22, replace the deprecated function with the
the newer equivalent.
  • Loading branch information
james7132 authored Feb 19, 2024
1 parent 24e8e67 commit ac6a4ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_macro_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tools/build-templated-pages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion tools/build-templated-pages/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn parse_features(panic_on_missing: bool) -> Vec<Feature> {
.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}");
Expand Down
2 changes: 1 addition & 1 deletion tools/example-showcase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ac6a4ff

Please sign in to comment.