From 690e83725c1453d2db27df9cf5e9ae24d503b0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 28 Dec 2017 06:18:31 +0100 Subject: [PATCH] connection: Unneeded return value --- src/connection.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/connection.rs b/src/connection.rs index fcb33c0b..c209f37a 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -29,13 +29,15 @@ impl Connection for C2S { elem.push_attribute(("id", id)); elem.push_attribute(("xmlns", ns::CLIENT)); elem.push_attribute(("xmlns:stream", ns::STREAM)); - transport.write_event(WriterEvent::Start(elem)) + transport.write_event(WriterEvent::Start(elem)); + Ok(()) } fn close(transport: &mut T) -> Result<(), Error> { let name = "stream:stream"; let elem = BytesEnd::borrowed(name.as_bytes()); - transport.write_event(WriterEvent::End(elem)) + transport.write_event(WriterEvent::End(elem)); + Ok(()) } } @@ -54,12 +56,14 @@ impl Connection for Component2S { elem.push_attribute(("id", id)); elem.push_attribute(("xmlns", ns::COMPONENT_ACCEPT)); elem.push_attribute(("xmlns:stream", ns::STREAM)); - transport.write_event(WriterEvent::Start(elem)) + transport.write_event(WriterEvent::Start(elem)); + Ok(()) } fn close(transport: &mut T) -> Result<(), Error> { let name = "stream:stream"; let elem = BytesEnd::borrowed(name.as_bytes()); - transport.write_event(WriterEvent::End(elem)) + transport.write_event(WriterEvent::End(elem)); + Ok(()) } }