From 894acc18e351fea1e1b8730d0d916c8c49725b1c Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 13 Mar 2023 16:43:07 -0400 Subject: [PATCH] xfer --- veilid-cli/Cargo.toml | 2 +- veilid-core/src/crypto/types/crypto_typed_set.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/veilid-cli/Cargo.toml b/veilid-cli/Cargo.toml index 92fccf4e..3a9ad7b6 100644 --- a/veilid-cli/Cargo.toml +++ b/veilid-cli/Cargo.toml @@ -43,7 +43,7 @@ flexi_logger = { version = "^0", features = ["use_chrono_for_offset"] } thiserror = "^1" crossbeam-channel = "^0" hex = "^0" -veilid-core = { path = "../veilid-core", default_features = false } +veilid-core = { path = "../veilid-core" } json = "^0" [dev-dependencies] diff --git a/veilid-core/src/crypto/types/crypto_typed_set.rs b/veilid-core/src/crypto/types/crypto_typed_set.rs index e1edbe01..19932b67 100644 --- a/veilid-core/src/crypto/types/crypto_typed_set.rs +++ b/veilid-core/src/crypto/types/crypto_typed_set.rs @@ -195,9 +195,10 @@ where write!(f, "[")?; let mut first = true; for x in &self.items { - if !first { - write!(f, ",")?; + if first { first = false; + } else { + write!(f, ",")?; } write!(f, "{}", x)?; }