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 333e1ca commit 867c4a5Copy full SHA for 867c4a5
src/libcore/ops/range.rs
@@ -708,9 +708,9 @@ impl<T: Clone> Bound<&T> {
708
/// assert_eq!((1..12).start_bound(), Included(&1));
709
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
710
/// ```
711
- #[unstable(feature = "bound_cloned", issue = 61356)]
+ #[unstable(feature = "bound_cloned", issue = "61356")]
712
fn cloned(&self) -> Bound<T> {
713
- match self {
+ match *self {
714
Bound::Unbounded => Bound::Unbounded,
715
Bound::Included(x) => Bound::Included(x.clone()),
716
Bound::Excluded(x) => Bound::Excluded(x.clone()),
0 commit comments