/// Save the configuration file
pub fn save_config(config: &SectionConfigData) -> Result<(), Error> {
- let raw = CONFIG.write(MEDIA_POOL_CFG_FILENAME, &config)?;
+ let raw = CONFIG.write(MEDIA_POOL_CFG_FILENAME, config)?;
replace_backup_config(MEDIA_POOL_CFG_FILENAME, raw.as_bytes())
}