mirror of
https://github.com/zerotier/zssp.git
synced 2026-05-22 16:28:40 -07:00
@@ -3,7 +3,7 @@ authors = ["ZeroTier, Inc. <contact@zerotier.com>", "Adam Ierymenko <adam.ieryme
|
||||
edition = "2021"
|
||||
license = "MPL-2.0"
|
||||
name = "zssp"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
|
||||
[lib]
|
||||
name = "zssp"
|
||||
|
||||
@@ -321,14 +321,16 @@ where
|
||||
Session<C>: 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<C: CryptoLayer> fmt::Display for ByzantineFault<C> {
|
||||
|
||||
Reference in New Issue
Block a user