diff options
| author | Chris Gregory <czipperz@gmail.com> | 2019-06-05 21:23:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-05 21:23:45 -0700 |
| commit | c1bc8f11cb36cade87422b91a0bdec1fe8b5af41 (patch) | |
| tree | d276cb247e843dd9c24d02586b0ac802c9b30c81 /src/libcore/ops | |
| parent | 4a88614c4f46e1786a5bf2ce650631cc250a6edb (diff) | |
| download | rust-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.rs | 2 |
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()), |
