diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-10-01 15:26:23 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-10-01 15:26:53 -0700 |
| commit | a4a7df0cccc36ed00b46462050ec522eadc2a0fc (patch) | |
| tree | 6294e5cb5e90bdb98cc88a32a43a66baa1e1ea15 /src/libstd | |
| parent | b18320446e553a3f8436f87306dded57e16a4b94 (diff) | |
| download | rust-a4a7df0cccc36ed00b46462050ec522eadc2a0fc.tar.gz rust-a4a7df0cccc36ed00b46462050ec522eadc2a0fc.zip | |
Fix rope breakage from de-exporting.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rope.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/rope.rs b/src/libstd/rope.rs index 47539b2dab6..647560099e9 100644 --- a/src/libstd/rope.rs +++ b/src/libstd/rope.rs @@ -431,24 +431,24 @@ pub fn loop_leaves(rope: Rope, it: fn(node::Leaf) -> bool) -> bool{ pub mod iterator { pub mod leaf { - fn start(rope: Rope) -> node::leaf_iterator::T { + pub fn start(rope: Rope) -> node::leaf_iterator::T { match (rope) { node::Empty => return node::leaf_iterator::empty(), node::Content(x) => return node::leaf_iterator::start(x) } } - fn next(it: &node::leaf_iterator::T) -> Option<node::Leaf> { + pub fn next(it: &node::leaf_iterator::T) -> Option<node::Leaf> { return node::leaf_iterator::next(it); } } pub mod char { - fn start(rope: Rope) -> node::char_iterator::T { + pub fn start(rope: Rope) -> node::char_iterator::T { match (rope) { node::Empty => return node::char_iterator::empty(), node::Content(x) => return node::char_iterator::start(x) } } - fn next(it: &node::char_iterator::T) -> Option<char> { + pub fn next(it: &node::char_iterator::T) -> Option<char> { return node::char_iterator::next(it) } } |
