Skip to content

Commit 4a88614

Browse files
committed
Take self by value (Self is Copy here)
1 parent c478efb commit 4a88614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ops/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ impl<T: Clone> Bound<&T> {
710710
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
711711
/// ```
712712
#[unstable(feature = "bound_cloned", issue = "61356")]
713-
pub fn cloned(&self) -> Bound<T> {
713+
pub fn cloned(self) -> Bound<T> {
714714
match *self {
715715
Bound::Unbounded => Bound::Unbounded,
716716
Bound::Included(x) => Bound::Included(x.clone()),

0 commit comments

Comments
 (0)