Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 328 Bytes
// to see fast parsing, uncomment next line and comment out following one:
// use a::b;
use a::b::c;
pub fn mk_pass(name: ~str, op: @fn(&str) -> ~str) -> Pass {
let op = Cell(op);
Pass {
name: copy name,
f: |srv: astsrv::Srv, doc: doc::Doc| -> doc::Doc {
run(srv, doc, op.take())
}
}
}