Skip to content

Commit 94b2f13

Browse files
sypharGuillaumeGomez
authored andcommitted
adapt toml parsing for getting readme to newer package version
1 parent d831cb3 commit 94b2f13

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
@@ -314,7 +314,7 @@ impl CrateDetails {
314314
};
315315
let manifest = String::from_utf8(manifest.content)
316316
.context("parsing Cargo.toml")?
317-
.parse::<toml::Value>()
317+
.parse::<toml::Table>()
318318
.context("parsing Cargo.toml")?;
319319
let paths = match manifest.get("package").and_then(|p| p.get("readme")) {
320320
Some(toml::Value::Boolean(true)) => vec!["README.md"],

0 commit comments

Comments
 (0)