mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-26 00:00:20 +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 =====
|
* ===== Sink / Source =====
|
||||||
|
|||||||
Reference in New Issue
Block a user