about summary refs log tree commit diff
path: root/src/libcore/ops
diff options
context:
space:
mode:
authorChris Gregory <czipperz@gmail.com>2019-06-05 21:23:45 -0700
committerGitHub <noreply@github.com>2019-06-05 21:23:45 -0700
commitc1bc8f11cb36cade87422b91a0bdec1fe8b5af41 (patch)
treed276cb247e843dd9c24d02586b0ac802c9b30c81 /src/libcore/ops
parent4a88614c4f46e1786a5bf2ce650631cc250a6edb (diff)
downloadrust-c1bc8f11cb36cade87422b91a0bdec1fe8b5af41.tar.gz
rust-c1bc8f11cb36cade87422b91a0bdec1fe8b5af41.zip
Remove dereference
Co-Authored-By: Steven Fackler <sfackler@gmail.com>
Diffstat (limited to 'src/libcore/ops')
-rw-r--r--src/libcore/ops/range.rs2
1 files changed, 1 insertions, 1 deletions
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<T: Clone> Bound<&T> {
     /// ```
     #[unstable(feature = "bound_cloned", issue = "61356")]
     pub 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()),