Shorten debug for messages

This commit is contained in:
Igor Katson 2023-11-30 17:34:39 +00:00
parent 32a220f17c
commit 18c845d6f0
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 10 additions and 4 deletions

View file

@ -170,7 +170,7 @@ pub struct Node {
impl core::fmt::Debug for Node {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "<{:?}; {}>", self.id, self.addr)
write!(f, "{}={:?}", self.addr, self.id)
}
}