mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
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:
parent
c0970c6cf4
commit
dab1ff7dd9
2 changed files with 2 additions and 2 deletions
|
@ -14,4 +14,4 @@ rust-version = "1.69"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = { version = "0.4.23", default-features = false, features = ["std", "clock"] }
|
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();
|
let mut contents = String::new();
|
||||||
file.read_to_string(&mut contents).ok()?;
|
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
|
let release_date = doc
|
||||||
.get("package")
|
.get("package")
|
||||||
.and_then(|package| package.as_table_like())
|
.and_then(|package| package.as_table_like())
|
||||||
|
|
Loading…
Reference in a new issue