fn upgrade(
        self,
        upgraded_deps: &ActualUpgrades,
        dry_run: bool,
        skip_compatible: bool,
    ) -> Result<(), Error> {
        for (mut manifest, package) in self.0 {
            println!("{}:", package.name);

            for (dep, version) in &upgraded_deps.0 {
                let mut new_dep = Dependency::new(&dep.name).set_version(version);
                if let Some(rename) = dep.rename() {
                    new_dep = new_dep.set_rename(rename);
                }
                manifest
                    .upgrade(&new_dep, dry_run, skip_compatible)
                    .map_err_op("invoke cargo_edit::upgrade")?;
            }
        }

        Ok(())
    }
/// Upgrade the manifests on disk following the previously-determined
/// upgrade schema.
Upgrade the manifests on disk following the previously-determined
upgrade schema.
Upgrade the manifests on disk following the previously - determined upgrade schema .
fn upgrade(
        self,
        upgraded_deps: &ActualUpgrades,
        dry_run: bool,
        skip_compatible: bool,
    ) -> Result<(), Error> {
        for (mut manifest, package) in self.0 {
            println!("{}:", package.name);
            for (dep, version) in &upgraded_deps.0 {
                let mut new_dep = Dependency::new(&dep.name).set_version(version);
                if let Some(rename) = dep.rename() {
                    new_dep = new_dep.set_rename(rename);
                }
                manifest
                    .upgrade(&new_dep, dry_run, skip_compatible)
                    .map_err_op("invoke cargo_edit::upgrade")?;
            }
        }
        Ok(())
    }
fn upgrade ( self , upgraded_deps : & ActualUpgrades , dry_run : bool , skip_compatible : bool , ) -> Result < ( ) , Error > { for ( mut manifest , package ) in self . 0 { println ! ( " " package name ) ; for ( dep , version ) in & upgraded_deps . 0 { let mut new_dep = Dependency :: new ( & dep . name ) . set_version ( version ) ; if let Some ( rename ) = dep . rename ( ) { new_dep = new_dep . set_rename ( rename ) ; } manifest . upgrade ( & new_dep , dry_run , skip_compatible ) . map_err_op ( " " ) ? ; } } Ok ( ( ) ) }
Upgrade the manifests on disk following the previously-determined
upgrade schema.
Upgrade the manifests on disk following the previously - determined upgrade schema .
self
upgraded_deps
&ActualUpgrades
dry_run
bool
skip_compatible
bool