diff --git a/src/backup/manifest.rs b/src/backup/manifest.rs index 83e39e9c..b60582aa 100644 --- a/src/backup/manifest.rs +++ b/src/backup/manifest.rs @@ -186,7 +186,7 @@ impl BackupManifest { } /// Converts the Manifest into json string, and add a signature if there is a crypt_config. - pub fn into_string(self, crypt_config: Option<&CryptConfig>) -> Result { + pub fn to_string(&self, crypt_config: Option<&CryptConfig>) -> Result { let mut manifest = serde_json::to_value(&self)?; @@ -262,7 +262,7 @@ fn test_manifest_signature() -> Result<(), Error> { manifest.unprotected["note"] = "This is not protected by the signature.".into(); - let text = manifest.into_string(Some(&crypt_config))?; + let text = manifest.to_string(Some(&crypt_config))?; let manifest: Value = serde_json::from_str(&text)?; let signature = manifest["signature"].as_str().unwrap().to_string(); diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index 7c6a05cb..0d1746dd 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -1082,7 +1082,7 @@ async fn create_backup( // create manifest (index.json) // manifests are never encrypted, but include a signature - let manifest = manifest.into_string(crypt_config.as_ref().map(Arc::as_ref)) + let manifest = manifest.to_string(crypt_config.as_ref().map(Arc::as_ref)) .map_err(|err| format_err!("unable to format manifest - {}", err))?;