mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-21 11:00:59 +00:00
version-helper: Use non-deprecated type alias from toml_edit
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1503>
This commit is contained in:
parent
fadb7d0a26
commit
428f670753
2 changed files with 2 additions and 2 deletions
|
@ -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"] }
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue