version-helper: Use non-deprecated type alias from toml_edit

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1508>
This commit is contained in:
Sebastian Dröge 2024-03-19 18:16:42 +02:00 committed by Guillaume Desmottes
parent c0970c6cf4
commit dab1ff7dd9
2 changed files with 2 additions and 2 deletions

View file

@ -14,4 +14,4 @@ rust-version = "1.69"
[dependencies]
chrono = { version = "0.4.23", default-features = false, features = ["std", "clock"] }
toml_edit = { version = "0.22", default-features = false, features = ["parse"] }
toml_edit = { version = "0.22.8", default-features = false, features = ["parse"] }

View file

@ -95,7 +95,7 @@ fn cargo_metadata_release_date(crate_dir: &path::Path) -> Option<chrono::DateTim
let mut contents = String::new();
file.read_to_string(&mut contents).ok()?;
let doc = contents.parse::<toml_edit::Document>().ok()?;
let doc = contents.parse::<toml_edit::DocumentMut>().ok()?;
let release_date = doc
.get("package")
.and_then(|package| package.as_table_like())