|
@@ -363,8 +363,8 @@ impl<T: AsRef<[u8]>> PrettyPrint for Packet<T> {
|
|
|
indent: &mut PrettyIndent)
|
|
|
-> fmt::Result {
|
|
|
match Packet::new_checked(buffer) {
|
|
|
- Err(err) => write!(f, "{}({})\n", indent, err),
|
|
|
- Ok(packet) => write!(f, "{}{}\n", indent, packet),
|
|
|
+ Err(err) => writeln!(f, "{}({})", indent, err),
|
|
|
+ Ok(packet) => writeln!(f, "{}{}", indent, packet),
|
|
|
}
|
|
|
}
|
|
|
}
|