Fix compilation errors

This commit is contained in:
Chris Gregory 2019-05-30 21:52:52 -05:00
parent 333e1ca319
commit 867c4a5fda

View file

@ -708,9 +708,9 @@ impl<T: Clone> Bound<&T> {
/// assert_eq!((1..12).start_bound(), Included(&1)); /// assert_eq!((1..12).start_bound(), Included(&1));
/// assert_eq!((1..12).start_bound().cloned(), 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> { fn cloned(&self) -> Bound<T> {
match self { match *self {
Bound::Unbounded => Bound::Unbounded, Bound::Unbounded => Bound::Unbounded,
Bound::Included(x) => Bound::Included(x.clone()), Bound::Included(x) => Bound::Included(x.clone()),
Bound::Excluded(x) => Bound::Excluded(x.clone()), Bound::Excluded(x) => Bound::Excluded(x.clone()),