Fix compilation errors
This commit is contained in:
parent
333e1ca319
commit
867c4a5fda
1 changed files with 2 additions and 2 deletions
|
@ -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()),
|
||||||
|
|
Loading…
Reference in a new issue