From 867c4a5fdac44d683035d8eaaf69f43adffcc5ca Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Thu, 30 May 2019 21:52:52 -0500 Subject: [PATCH] Fix compilation errors --- src/libcore/ops/range.rs | 4 ++-- 1 file 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 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 { - match self { + match *self { Bound::Unbounded => Bound::Unbounded, Bound::Included(x) => Bound::Included(x.clone()), Bound::Excluded(x) => Bound::Excluded(x.clone()),