Remove cloning and various formating/efficiency improvements (#321)

This commit is contained in:
Quentin Le Sceller
2020-02-04 16:17:46 +00:00
committed by GitHub
parent c76ee7c803
commit 047ea9372f
6 changed files with 22 additions and 25 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ impl ParticipantMessageData {
impl fmt::Display for ParticipantMessageData {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
writeln!(f, "")?;
writeln!(f)?;
write!(f, "Participant ID {} ", self.id)?;
if self.id == 0 {
writeln!(f, "(Sender)")?;