Skip to content

Commit f03a673

Browse files
theoden8bbhtt
authored andcommitted
cargo: unwrap tomldoc
1 parent 474ed39 commit f03a673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cargo/flatpak-cargo-generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def get_remote_sha256(url: str) -> str:
120120

121121
def load_toml(tomlfile: str = "Cargo.lock") -> _TomlType:
122122
with open(tomlfile, "r", encoding="utf-8") as f:
123-
toml_data = tomlkit.parse(f.read())
123+
toml_data = tomlkit.parse(f.read()).unwrap()
124124
return toml_data
125125

126126

0 commit comments

Comments
 (0)