Update for new toml API

This commit is contained in:
link2xt
2023-01-31 12:25:59 +00:00
parent afcbbb3538
commit f342dc8196
2 changed files with 4 additions and 2 deletions

View File

@@ -640,7 +640,8 @@ impl Context {
}
fn parse_webxdc_manifest(bytes: &[u8]) -> Result<WebxdcManifest> {
let manifest: WebxdcManifest = toml::from_slice(bytes)?;
let s = std::str::from_utf8(bytes)?;
let manifest: WebxdcManifest = toml::from_str(s)?;
Ok(manifest)
}