From 074f4ea2dbdd81f8d12afd6d2570c0580ec7888e Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Mon, 10 Jun 2024 18:07:05 -0700 Subject: [PATCH] fix toml --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- bin/core/src/api/read/toml.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 04354c159..c08a762da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3822,9 +3822,9 @@ dependencies = [ [[package]] name = "toml_pretty" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8df1befb0cfdeeec0adc0d34e25dec5466ea469a88f5cfd75bded7bb879ae7c0" +checksum = "82f8e4ea90d16b35c82cc8048862c6be67abe6ac2020929524bfc3105e74fd98" dependencies = [ "ordered_hash_map", "serde", diff --git a/Cargo.toml b/Cargo.toml index c5bceef5c..8176f5b7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ partial_derive2 = "0.4.3" derive_variants = "1.0.0" mongo_indexed = "0.3.0" resolver_api = "1.1.0" -toml_pretty = "0.2.0" +toml_pretty = "0.3.0" parse_csl = "0.1.0" mungos = "0.5.6" svi = "1.0.1" diff --git a/bin/core/src/api/read/toml.rs b/bin/core/src/api/read/toml.rs index 85326db3d..638438596 100644 --- a/bin/core/src/api/read/toml.rs +++ b/bin/core/src/api/read/toml.rs @@ -600,7 +600,7 @@ fn serialize_resources_toml( ); } res.push_str( - &toml_pretty::to_string_custom_tab(&deployment, " ") + &toml_pretty::to_string_custom_tab(&parsed, " ") .context("failed to serialize deployments to toml")?, ); } @@ -636,7 +636,7 @@ fn serialize_resources_toml( } res.push_str("[[build]]\n"); res.push_str( - &toml_pretty::to_string_custom_tab(&build, " ") + &toml_pretty::to_string_custom_tab(&parsed, " ") .context("failed to serialize builds to toml")?, ); }