about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcore/ops/range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs
index ddcf3addf39..763020c478f 100644
--- a/src/libcore/ops/range.rs
+++ b/src/libcore/ops/range.rs
@@ -710,7 +710,7 @@ impl<T: Clone> Bound<&T> {
     /// assert_eq!((1..12).start_bound().cloned(), Included(1));
     /// ```
     #[unstable(feature = "bound_cloned", issue = "61356")]
-    pub fn cloned(&self) -> Bound<T> {
+    pub fn cloned(self) -> Bound<T> {
         match *self {
             Bound::Unbounded => Bound::Unbounded,
             Bound::Included(x) => Bound::Included(x.clone()),