From c1bc8f11cb36cade87422b91a0bdec1fe8b5af41 Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Wed, 5 Jun 2019 21:23:45 -0700 Subject: Remove dereference Co-Authored-By: Steven Fackler --- src/libcore/ops/range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore') 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()), -- cgit 1.4.1-3-g733a5