mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 08:15:03 +00:00
Parse lockfile dependency graphs as TOML documents
This commit is contained in:
@@ -16,7 +16,7 @@ pub(crate) struct LockGraph {
|
||||
}
|
||||
impl LockGraph {
|
||||
pub(crate) fn parse(text: &str) -> Self {
|
||||
let lock: toml::Value = text.parse().unwrap();
|
||||
let lock: toml::Value = toml::from_str(text).unwrap();
|
||||
let packages = lock
|
||||
.get("package")
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user