about summary refs log tree commit diff
path: root/src/librbml/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librbml/lib.rs')
-rw-r--r--src/librbml/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librbml/lib.rs b/src/librbml/lib.rs
index f65c4f4e3ed..426a987d25d 100644
--- a/src/librbml/lib.rs
+++ b/src/librbml/lib.rs
@@ -47,6 +47,8 @@ pub struct Doc<'a> {
     pub end: uint,
 }
 
+impl<'doc> Copy for Doc<'doc> {}
+
 impl<'doc> Doc<'doc> {
     pub fn new(data: &'doc [u8]) -> Doc<'doc> {
         Doc { data: data, start: 0u, end: data.len() }
@@ -104,6 +106,8 @@ pub enum EbmlEncoderTag {
     EsLabel, // Used only when debugging
 }
 
+impl Copy for EbmlEncoderTag {}
+
 #[deriving(Show)]
 pub enum Error {
     IntTooBig(uint),
@@ -151,6 +155,8 @@ pub mod reader {
         pub next: uint
     }
 
+    impl Copy for Res {}
+
     #[inline(never)]
     fn vuint_at_slow(data: &[u8], start: uint) -> DecodeResult<Res> {
         let a = data[start];