]> git.lizzy.rs Git - rust.git/commitdiff
Fix compilation errors
authorChris Gregory <czipperz@gmail.com>
Fri, 31 May 2019 02:52:52 +0000 (21:52 -0500)
committerChris Gregory <czipperz@gmail.com>
Fri, 31 May 2019 02:52:52 +0000 (21:52 -0500)
src/libcore/ops/range.rs

index 39bf80281c576d4b4fe3b356990c60ecbcb67c00..a04c1bc03392931009a7b6bc1ec8757588870055 100644 (file)
@@ -708,9 +708,9 @@ impl<T: Clone> Bound<&T> {
     /// assert_eq!((1..12).start_bound(), Included(&1));
     /// assert_eq!((1..12).start_bound().cloned(), Included(1));
     /// ```
-    #[unstable(feature = "bound_cloned", issue = 61356)]
+    #[unstable(feature = "bound_cloned", issue = "61356")]
     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()),