fn read_toml()

in cargo-guppy/src/mv.rs [515:520]


fn read_toml(manifest_path: &Utf8Path) -> Result<Document> {
    let toml = fs::read_to_string(manifest_path)
        .wrap_err_with(|| eyre!("error while reading manifest {}", manifest_path))?;
    toml.parse::<Document>()
        .wrap_err_with(|| eyre!("error while parsing manifest {}", manifest_path))
}