From d504c650ddfac46b51f25c3f0181c965ed02ce22 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 21 Oct 2024 16:16:32 +0200 Subject: [PATCH] fix: remove .toml from names, only 1 colon as sep --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ef45bbe..5cc5013 100644 --- a/src/main.rs +++ b/src/main.rs @@ -160,7 +160,7 @@ async fn run_collection_endpoints( let task = async move { let before = chrono::Local::now(); - eprintln!(" : [{}] {_namespace}::{name} \tsending request...", before.format(fmt::TIMESTAMP_FMT)); + eprintln!(" : [{}] {_namespace}:{name} \tsending request...", before.format(fmt::TIMESTAMP_FMT)); let res = if dry_run { Ok("".to_string()) @@ -211,7 +211,7 @@ fn load_collections(store: &mut IndexMap, mut path: }, }; - let name = path.to_string_lossy().to_string(); + let name = path.to_string_lossy().replace(".toml", ""); let mut to_include = Vec::new(); if let Some(ref includes) = collection.include {