pub(crate) fn store_writer(config: &Config, mut writer: impl Write) -> Result<(), error::Error> {
    let toml_config =
        toml::to_string_pretty(&config).map_err(|e| error::Kind::Config.context(e))?;

    writeln!(writer, "{}", toml_config).map_err(|e| error::Kind::Config.context(e))?;

    Ok(())
}
/// 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::Error> {
    let toml_config =
        toml::to_string_pretty(&config).map_err(|e| error::Kind::Config.context(e))?;
    writeln!(writer, "{}", toml_config).map_err(|e| error::Kind::Config.context(e))?;
    Ok(())
}
pub ( crate ) fn store_writer ( config : & Config , mut writer : impl Write ) -> Result < ( ) , error :: Error > { let toml_config = toml :: to_string_pretty ( & config ) . map_err ( | e | error :: Kind :: Config . context ( e ) ) ? ; writeln ! ( writer " " toml_config ) . map_err ( | e | error :: Kind :: Config . context ( e ) ) ? ; 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
config
&Config
writer
impl Write