Add Clone for EasyBuf

This commit is contained in:
Aaron Turon 2016-12-17 14:17:52 -08:00
parent 9bb1366f33
commit 46d68f739a

View File

@ -12,6 +12,7 @@ use io::Io;
/// be handed out efficiently, each with a `'static` lifetime which keeps the
/// data alive. The buffer also supports mutation but may require bytes to be
/// copied to complete the operation.
#[derive(Clone)]
pub struct EasyBuf {
buf: Arc<Vec<u8>>,
start: usize,