From 0772f9a92082c3f5a734e1fae198f817bbf2f61f Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Fri, 31 May 2019 11:36:28 -0500 Subject: [PATCH] Make Bound::cloned public --- src/libcore/ops/range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index a04c1bc0339..e9c5f1d4a8b 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -709,7 +709,7 @@ impl Bound<&T> { /// assert_eq!((1..12).start_bound().cloned(), Included(1)); /// ``` #[unstable(feature = "bound_cloned", issue = "61356")] - fn cloned(&self) -> Bound { + pub fn cloned(&self) -> Bound { match *self { Bound::Unbounded => Bound::Unbounded, Bound::Included(x) => Bound::Included(x.clone()),