Remove dereference

Co-Authored-By: Steven Fackler <sfackler@gmail.com>
This commit is contained in:
Chris Gregory 2019-06-05 21:23:45 -07:00 committed by GitHub
parent 4a88614c4f
commit c1bc8f11cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()),