diff options
| author | Chris Gregory <czipperz@gmail.com> | 2019-05-31 11:36:28 -0500 |
|---|---|---|
| committer | Chris Gregory <czipperz@gmail.com> | 2019-05-31 11:36:28 -0500 |
| commit | 0772f9a92082c3f5a734e1fae198f817bbf2f61f (patch) | |
| tree | d1db6a85f0970a13bd5a1572655c643db2498415 /src/libcore | |
| parent | 867c4a5fdac44d683035d8eaaf69f43adffcc5ca (diff) | |
| download | rust-0772f9a92082c3f5a734e1fae198f817bbf2f61f.tar.gz rust-0772f9a92082c3f5a734e1fae198f817bbf2f61f.zip | |
Make Bound::cloned public
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops/range.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<T: Clone> Bound<&T> { /// assert_eq!((1..12).start_bound().cloned(), Included(1)); /// ``` #[unstable(feature = "bound_cloned", issue = "61356")] - fn cloned(&self) -> Bound<T> { + pub fn cloned(&self) -> Bound<T> { match *self { Bound::Unbounded => Bound::Unbounded, Bound::Included(x) => Bound::Included(x.clone()), |
