mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-12 00:00:14 +02:00
Impl IntoBuf for ()
This commit is contained in:
@@ -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 =====
|
||||
|
||||
Reference in New Issue
Block a user