fn parse_manifest(path: &Path) -> TResult<CargoManifest> {
    let contents = std::fs::read_to_string(path).map_err(|error| CargoMSRVError::Io {
        error,
        source: IoErrorSource::ReadFile(path.to_path_buf()),
    })?;

    let manifest = CargoManifestParser::default().parse::<Document>(&contents)?;
    CargoManifest::try_from(manifest)
}
/// Parse the cargo manifest from the given path.
Parse the cargo manifest from the given path.
Parse the cargo manifest from the given path .
fn parse_manifest(path: &Path) -> TResult<CargoManifest> {
    let contents = std::fs::read_to_string(path).map_err(|error| CargoMSRVError::Io {
        error,
        source: IoErrorSource::ReadFile(path.to_path_buf()),
    })?;
    let manifest = CargoManifestParser::default().parse::<Document>(&contents)?;
    CargoManifest::try_from(manifest)
}
fn parse_manifest ( path : & Path ) -> TResult < CargoManifest > { let contents = std :: fs :: read_to_string ( path ) . map_err ( | error | CargoMSRVError :: Io { error , source : IoErrorSource :: ReadFile ( path . to_path_buf ( ) ) , } ) ? ; let manifest = CargoManifestParser :: default ( ) . parse :: < Document > ( & contents ) ? ; CargoManifest :: try_from ( manifest ) }
Parse the cargo manifest from the given path.
Parse the cargo manifest from the given path .
path
&Path
path
&Path