Skip to content

Commit

Permalink
Remove dereference
Browse files Browse the repository at this point in the history
Co-Authored-By: Steven Fackler <[email protected]>
  • Loading branch information
czipperz and sfackler authored Jun 6, 2019
1 parent 4a88614 commit c1bc8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/ops/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit c1bc8f1

Please sign in to comment.