diff --git a/src/lib/ufind.rs b/src/lib/ufind.rs index c24bd3e1227..5dc0a1038a4 100644 --- a/src/lib/ufind.rs +++ b/src/lib/ufind.rs @@ -11,10 +11,7 @@ type node = option::t[uint]; type ufind = rec(mutable vec[mutable node] nodes); fn make() -> ufind { - let vec[mutable node] v = [mutable none[uint]]; - vec::pop(v); // FIXME: botch - - ret rec(mutable nodes=v); + ret rec(mutable nodes=[mutable]); } fn make_set(&ufind ufnd) -> uint { @@ -54,4 +51,4 @@ fn prune(&ufind ufnd, uint n) { auto len = vec::len[node](ufnd.nodes); while (len != n) { vec::pop[node](ufnd.nodes); len -= 1u; } -} \ No newline at end of file +}