From 3fbb0e180e363259ad6750747e9d25ba4b58f989 Mon Sep 17 00:00:00 2001 From: Monica Moniot Date: Wed, 22 Nov 2023 10:21:15 -0500 Subject: [PATCH 1/2] fixed broken feature flag --- performance/src/result.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/performance/src/result.rs b/performance/src/result.rs index f138f10..f65387b 100644 --- a/performance/src/result.rs +++ b/performance/src/result.rs @@ -321,14 +321,16 @@ where Session: fmt::Debug, { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("ByzantineFault") - .field("session", &self.session) - .field("caused_expiration", &self.caused_expiration) + let mut a = f.debug_struct("ByzantineFault"); + a.field("session", &self.session) .field("error", &self.error) .field("unnatural", &self.unnatural) - .field("file", &self.file) - .field("line", &self.line) - .finish() + .field("caused_expiration", &self.caused_expiration); + #[cfg(feature = "debug")] + { + a.field("file", &self.file).field("line", &self.line); + } + a.finish() } } impl fmt::Display for ByzantineFault { From 93c3a5ce6e776af44df207ecf4cf29e8a39a62c0 Mon Sep 17 00:00:00 2001 From: Monica Moniot Date: Wed, 22 Nov 2023 10:22:10 -0500 Subject: [PATCH 2/2] upped version --- performance/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance/Cargo.toml b/performance/Cargo.toml index 18997fa..2c25885 100644 --- a/performance/Cargo.toml +++ b/performance/Cargo.toml @@ -3,7 +3,7 @@ authors = ["ZeroTier, Inc. ", "Adam Ierymenko