pub fn write_to_packfile<'a>(
        &'a self,
        repo: &mut GitRepository<'a>,
    ) -> Result<(), anyhow::Error> {
        for (name, content) in &self.crates {
            let crate_folder = get_crate_folder(name);
            repo.insert(crate_folder, name, content.as_bytes())?;
        }

        Ok(())
    }
/// Writes all the crate manifests from `self.crates` out to the given `GitRepository`.
Writes all the crate manifests from `self.crates` out to the given `GitRepository`.
Writes all the crate manifests from ` self . crates ` out to the given ` GitRepository ` .
pub fn write_to_packfile<'a>(
        &'a self,
        repo: &mut GitRepository<'a>,
    ) -> Result<(), anyhow::Error> {
        for (name, content) in &self.crates {
            let crate_folder = get_crate_folder(name);
            repo.insert(crate_folder, name, content.as_bytes())?;
        }
        Ok(())
    }
pub fn write_to_packfile < ' a > ( & ' a self , repo : & mut GitRepository < ' a > , ) -> Result < ( ) , anyhow :: Error > { for ( name , content ) in & self . crates { let crate_folder = get_crate_folder ( name ) ; repo . insert ( crate_folder , name , content . as_bytes ( ) ) ? ; } Ok ( ( ) ) }
Writes all the crate manifests from `self.crates` out to the given `GitRepository`.
Writes all the crate manifests from ` self . crates ` out to the given ` GitRepository ` .
&'a self
repo
&mut GitRepository<'a>
&'a self
repo
&mut GitRepository<'a>