From 8d4d2d42643566c02d18b76d737f5c46b0cacc72 Mon Sep 17 00:00:00 2001 From: core Date: Thu, 22 Jun 2023 10:59:33 -0400 Subject: [PATCH] its at least a functional mess --- Cargo.lock | 2 +- trifid-api/src/codegen/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93dd36c..9a1a78c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3633,7 +3633,7 @@ dependencies = [ [[package]] name = "trifid-api" -version = "0.1.0" +version = "0.1.1" dependencies = [ "actix-cors", "actix-request-identifier", diff --git a/trifid-api/src/codegen/mod.rs b/trifid-api/src/codegen/mod.rs index 05579c8..fd6ea04 100644 --- a/trifid-api/src/codegen/mod.rs +++ b/trifid-api/src/codegen/mod.rs @@ -212,7 +212,7 @@ pub async fn generate_config( value = value.get_mut(ks_k).ok_or("Invalid key-value pair")?.as_mapping_mut().unwrap(); } - value.insert(Value::String(key_split[key_split.len()-1].to_string()), serde_yaml::from_str(&v)?); + value.insert(Value::String(key_split[key_split.len()-1].to_string()), serde_yaml::from_str(v)?); } let overrides_value = Value::Mapping(val);