Parse lockfile dependency graphs as TOML documents

This commit is contained in:
Terra854
2026-11-17 19:09:27 +08:00
parent ca56374cf1
commit 6d0fa2c26d
+1 -1
View File
@@ -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()