From 1e7031aa3109c1beb9d67abe996df8793774d70a Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 29 Jan 2019 01:51:22 +0100 Subject: [PATCH] xmpp_codec: encode --- src/xmpp_codec.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xmpp_codec.rs b/src/xmpp_codec.rs index 17894b3..482cd78 100644 --- a/src/xmpp_codec.rs +++ b/src/xmpp_codec.rs @@ -317,8 +317,10 @@ impl Encoder for XMPPCodec { }) .map_err(to_io_err) } - // TODO: Implement all - _ => Ok(()), + Packet::StreamEnd => { + write!(dst, "\n") + .map_err(to_io_err) + } } } }