pub fn to_final(
        &self,
        bonnie_version_str: &str,
        output: &mut impl std::io::Write,
    ) -> Result<schema::Config, String> {
        // These two are run for their side-effects (both also used in loading from a cache)
        Self::parse_version_against_current(&self.version, bonnie_version_str, output)?;
        Self::load_env_files(self.env_files.clone())?;
        // And then we get the final config
        let cfg = self.parse()?;

        Ok(cfg)
    }
// Runs all the necessary methods to fully parse the config, consuming `self`
// Takes the current version of Bonnie (extracted for testing purposes)
// This accepts an output for warnings (extracted for testing)
Runs all the necessary methods to fully parse the config, consuming `self`
Takes the current version of Bonnie (extracted for testing purposes)
This accepts an output for warnings (extracted for testing)
Runs all the necessary methods to fully parse the config consuming ` self ` Takes the current version of Bonnie ( extracted for testing purposes ) This accepts an output for warnings ( extracted for testing )
pub fn to_final(
        &self,
        bonnie_version_str: &str,
        output: &mut impl std::io::Write,
    ) -> Result<schema::Config, String> {
        // These two are run for their side-effects (both also used in loading from a cache)
        Self::parse_version_against_current(&self.version, bonnie_version_str, output)?;
        Self::load_env_files(self.env_files.clone())?;
        // And then we get the final config
        let cfg = self.parse()?;
        Ok(cfg)
    }
pub fn to_final ( & self , bonnie_version_str : & str , output : & mut impl std :: io :: Write , ) -> Result < schema :: Config , String > { // These two are run for their side-effects (both also used in loading from a cache) Self :: parse_version_against_current ( & self . version , bonnie_version_str , output ) ? ; Self :: load_env_files ( self . env_files . clone ( ) ) ? ; // And then we get the final config let cfg = self . parse ( ) ? ; Ok ( cfg ) }
Runs all the necessary methods to fully parse the config, consuming `self`
Takes the current version of Bonnie (extracted for testing purposes)
This accepts an output for warnings (extracted for testing)
Runs all the necessary methods to fully parse the config consuming ` self ` Takes the current version of Bonnie ( extracted for testing purposes ) This accepts an output for warnings ( extracted for testing )
&self
bonnie_version_str
&str
output
&mut impl std::io::Write