From e1c7f183ca6abd0537a33205fce09dd80c5a1c58 Mon Sep 17 00:00:00 2001
From: Carl Lerche <me@carllerche.com>
Date: Fri, 30 Sep 2016 09:58:41 -0700
Subject: [PATCH] Impl IntoBuf for ()

---
 src/imp/buf/mod.rs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/imp/buf/mod.rs b/src/imp/buf/mod.rs
index f6b7004..9fde5c9 100644
--- a/src/imp/buf/mod.rs
+++ b/src/imp/buf/mod.rs
@@ -397,6 +397,14 @@ impl<'a> IntoBuf for &'a Vec<u8> {
     }
 }
 
+impl<'a> IntoBuf for &'a () {
+    type Buf = io::Cursor<&'static [u8]>;
+
+    fn into_buf(self) -> Self::Buf {
+        io::Cursor::new(&[])
+    }
+}
+
 /*
  *
  * ===== Sink / Source =====
-- 
GitLab