From 46d68f739aceec86d0ac0c540dbe11e42f4df81b Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Sat, 17 Dec 2016 14:17:52 -0800 Subject: [PATCH] Add Clone for EasyBuf --- src/io/frame.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/frame.rs b/src/io/frame.rs index c8c46dd35..cef835790 100644 --- a/src/io/frame.rs +++ b/src/io/frame.rs @@ -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>, start: usize,