From 0bf7ba6c92a023baf561e102d1fae18fde15784b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 27 Jul 2020 08:48:11 +0200 Subject: [PATCH] src/backup/manifest.rs: cleanup - avoid recursive call to write_canonical_json --- src/backup/manifest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backup/manifest.rs b/src/backup/manifest.rs index 66898b62..a35234d7 100644 --- a/src/backup/manifest.rs +++ b/src/backup/manifest.rs @@ -160,7 +160,7 @@ impl BackupManifest { keys.sort(); let mut iter = keys.into_iter(); if let Some(key) = iter.next() { - Self::write_canonical_json(&key.into(), output)?; + serde_json::to_writer(output as &mut dyn std::io::Write, &key)?; output.push(b':'); Self::write_canonical_json(&map[key], output)?; for key in iter {