/// Serialize the given `Config` as TOML to the given writer.
Serialize the given `Config` as TOML to the given writer.
Serialize the given ` Config ` as TOML to the given writer .
pub(crate) fn store_writer(config: &Config, mut writer: impl Write) -> Result<(), Error> {
    let toml_config = toml::to_string_pretty(&config).map_err(Error::encode)?;
    writeln!(writer, "{}", toml_config).map_err(Error::io)?;
    Ok(())
}
pub ( crate ) fn store_writer ( config : & Config , mut writer : impl Write ) -> Result < ( ) , Error > { let toml_config = toml :: to_string_pretty ( & config ) . map_err ( Error :: encode ) ? ; writeln ! ( writer " " toml_config ) . map_err ( Error :: io ) ? ; Ok ( ( ) ) }
Serialize the given `Config` as TOML to the given writer.
Serialize the given ` Config ` as TOML to the given writer .
config
&Config
writer
impl Write