fn process(args: Args) -> Result<()> {
    let Args {
        dependency,
        manifest_path,
        all,
        allow_prerelease,
        dry_run,
        ..
    } = args;

    let manifests = if all {
        Manifests::get_all(&manifest_path)
    } else {
        Manifests::get_local_one(&manifest_path)
    }?;

    let existing_dependencies = manifests.get_dependencies(dependency)?;

    let upgraded_dependencies = existing_dependencies.get_upgraded(allow_prerelease)?;

    manifests.upgrade(&upgraded_dependencies, dry_run)
}
/// Main processing function. Allows us to return a `Result` so that `main` can print pretty error
/// messages.
Main processing function. Allows us to return a `Result` so that `main` can print pretty error
messages.
Main processing function . Allows us to return a ` Result ` so that ` main ` can print pretty error messages .
fn process(args: Args) -> Result<()> {
    let Args {
        dependency,
        manifest_path,
        all,
        allow_prerelease,
        dry_run,
        ..
    } = args;
    let manifests = if all {
        Manifests::get_all(&manifest_path)
    } else {
        Manifests::get_local_one(&manifest_path)
    }?;
    let existing_dependencies = manifests.get_dependencies(dependency)?;
    let upgraded_dependencies = existing_dependencies.get_upgraded(allow_prerelease)?;
    manifests.upgrade(&upgraded_dependencies, dry_run)
}
fn process ( args : Args ) -> Result < ( ) > { let Args { dependency , manifest_path , all , allow_prerelease , dry_run , .. } = args ; let manifests = if all { Manifests :: get_all ( & manifest_path ) } else { Manifests :: get_local_one ( & manifest_path ) } ? ; let existing_dependencies = manifests . get_dependencies ( dependency ) ? ; let upgraded_dependencies = existing_dependencies . get_upgraded ( allow_prerelease ) ? ; manifests . upgrade ( & upgraded_dependencies , dry_run ) }
Main processing function.
Main processing function .
args
Args