pub fn override_crate_data(krate: &mut Crate, input: &InputCrateInfo) {
    replace_opt(&mut krate.license, &input.license);
    replace_opt(&mut krate.documentation, &input.documentation);
    if krate.documentation.is_none() {
        krate.documentation = Some(format!("https://docs.rs/crate/{}", krate.name));
    }
    replace_opt(
        &mut krate.repository,
        &input.repository.as_ref().map(|r| r.to_string()),
    );
    replace_opt(&mut krate.description, &input.description);
}
// Helper to allow specific fields from crates.yml
// to override the values returned by the Crates.io API
Helper to allow specific fields from crates.yml
to override the values returned by the Crates.io API
Helper to allow specific fields from crates . yml to override the values returned by the Crates . io API
pub fn override_crate_data(krate: &mut Crate, input: &InputCrateInfo) {
    replace_opt(&mut krate.license, &input.license);
    replace_opt(&mut krate.documentation, &input.documentation);
    if krate.documentation.is_none() {
        krate.documentation = Some(format!("https://docs.rs/crate/{}", krate.name));
    }
    replace_opt(
        &mut krate.repository,
        &input.repository.as_ref().map(|r| r.to_string()),
    );
    replace_opt(&mut krate.description, &input.description);
}
pub fn override_crate_data ( krate : & mut Crate , input : & InputCrateInfo ) { replace_opt ( & mut krate . license , & input . license ) ; replace_opt ( & mut krate . documentation , & input . documentation ) ; if krate . documentation . is_none ( ) { krate . documentation = Some ( format ! ( " " krate name ) ) ; } replace_opt ( & mut krate . repository , & input . repository . as_ref ( ) . map ( | r | r . to_string ( ) ) , ) ; replace_opt ( & mut krate . description , & input . description ) ; }
Helper to allow specific fields from crates.yml
to override the values returned by the Crates.io API
Helper to allow specific fields from crates . yml to override the values returned by the Crates . io API
krate
&mut Crate
input
&InputCrateInfo