Use debug_tuple instead of string formatting
This provides standard-library-like output.
This commit is contained in:
parent
8238e81c66
commit
45f1567ff2
1 changed files with 2 additions and 2 deletions
|
@ -301,13 +301,13 @@ pub struct BareJid {
|
|||
|
||||
impl fmt::Debug for FullJid {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
write!(fmt, "FullJID({})", self)
|
||||
fmt.debug_tuple("FullJid").field(&self.inner).finish()
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for BareJid {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
write!(fmt, "BareJID({})", self)
|
||||
fmt.debug_tuple("BareJid").field(&self.inner).finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue