Skip to content

Commit 291fd79

Browse files
committed
adapt toml parsing for getting readme to newer package version
1 parent e5abd78 commit 291fd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/crate_details.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl CrateDetails {
313313
};
314314
let manifest = String::from_utf8(manifest.content)
315315
.context("parsing Cargo.toml")?
316-
.parse::<toml::Value>()
316+
.parse::<toml::Table>()
317317
.context("parsing Cargo.toml")?;
318318
let paths = match manifest.get("package").and_then(|p| p.get("readme")) {
319319
Some(toml::Value::Boolean(true)) => vec!["README.md"],

0 commit comments

Comments
 (0)