Skip to content

Commit a4a7df0

Browse files
committed
Fix rope breakage from de-exporting.
1 parent b183204 commit a4a7df0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/rope.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,24 +431,24 @@ pub fn loop_leaves(rope: Rope, it: fn(node::Leaf) -> bool) -> bool{
431431

432432
pub mod iterator {
433433
pub mod leaf {
434-
fn start(rope: Rope) -> node::leaf_iterator::T {
434+
pub fn start(rope: Rope) -> node::leaf_iterator::T {
435435
match (rope) {
436436
node::Empty => return node::leaf_iterator::empty(),
437437
node::Content(x) => return node::leaf_iterator::start(x)
438438
}
439439
}
440-
fn next(it: &node::leaf_iterator::T) -> Option<node::Leaf> {
440+
pub fn next(it: &node::leaf_iterator::T) -> Option<node::Leaf> {
441441
return node::leaf_iterator::next(it);
442442
}
443443
}
444444
pub mod char {
445-
fn start(rope: Rope) -> node::char_iterator::T {
445+
pub fn start(rope: Rope) -> node::char_iterator::T {
446446
match (rope) {
447447
node::Empty => return node::char_iterator::empty(),
448448
node::Content(x) => return node::char_iterator::start(x)
449449
}
450450
}
451-
fn next(it: &node::char_iterator::T) -> Option<char> {
451+
pub fn next(it: &node::char_iterator::T) -> Option<char> {
452452
return node::char_iterator::next(it)
453453
}
454454
}

0 commit comments

Comments
 (0)