diff options
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops/range.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index 39bf80281c5..a04c1bc0339 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -708,9 +708,9 @@ impl<T: Clone> Bound<&T> { /// assert_eq!((1..12).start_bound(), Included(&1)); /// assert_eq!((1..12).start_bound().cloned(), Included(1)); /// ``` - #[unstable(feature = "bound_cloned", issue = 61356)] + #[unstable(feature = "bound_cloned", issue = "61356")] fn cloned(&self) -> Bound<T> { - match self { + match *self { Bound::Unbounded => Bound::Unbounded, Bound::Included(x) => Bound::Included(x.clone()), Bound::Excluded(x) => Bound::Excluded(x.clone()), |
