We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c478efb commit 4a88614Copy full SHA for 4a88614
src/libcore/ops/range.rs
@@ -710,7 +710,7 @@ impl<T: Clone> Bound<&T> {
710
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
711
/// ```
712
#[unstable(feature = "bound_cloned", issue = "61356")]
713
- pub fn cloned(&self) -> Bound<T> {
+ pub fn cloned(self) -> Bound<T> {
714
match *self {
715
Bound::Unbounded => Bound::Unbounded,
716
Bound::Included(x) => Bound::Included(x.clone()),
0 commit comments