diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index 763020c478f..1b4c4218cc1 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -711,7 +711,7 @@ impl Bound<&T> { /// ``` #[unstable(feature = "bound_cloned", issue = "61356")] pub 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()),