]> git.proxmox.com Git - proxmox-backup.git/blobdiff - pbs-config/src/media_pool.rs
tree-wide: fix needless borrows
[proxmox-backup.git] / pbs-config / src / media_pool.rs
index c07af123d33b079ffada1163a252ab37b16d6900..35a2924ec00a6c6e9a0738614cf3159b64983506 100644 (file)
@@ -59,7 +59,7 @@ pub fn config() -> Result<(SectionConfigData, [u8;32]), Error> {
 
 /// 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())
 }