Skip to content
Snippets Groups Projects
Commit e1c7f183 authored by Carl Lerche's avatar Carl Lerche
Browse files

Impl IntoBuf for ()

parent 4ca7e0fa
No related branches found
No related tags found
No related merge requests found
......@@ -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 =====
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment