diff options
Diffstat (limited to 'components/util/range.rs')
-rw-r--r-- | components/util/range.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/range.rs b/components/util/range.rs index 103f6d3c91d..ef6e7e0ff47 100644 --- a/components/util/range.rs +++ b/components/util/range.rs @@ -26,7 +26,7 @@ impl RangeIndex<int> for int { #[macro_export] macro_rules! int_range_index { ($(#[$attr:meta])* struct $Self:ident($T:ty)) => ( - #[deriving(Clone, PartialEq, PartialOrd, Eq, Ord, Show)] + #[deriving(Clone, PartialEq, PartialOrd, Eq, Ord, Show, Copy)] $(#[$attr])* pub struct $Self(pub $T); @@ -175,7 +175,7 @@ macro_rules! int_range_index { } /// A range of indices -#[deriving(Clone, Encodable)] +#[deriving(Clone, Encodable, Copy)] pub struct Range<I> { begin: I, length: I, |