Remove dereference
Co-Authored-By: Steven Fackler <sfackler@gmail.com>
This commit is contained in:
parent
4a88614c4f
commit
c1bc8f11cb
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user