getopts: unbox closures used in let bindings

This commit is contained in:
Jorge Aparicio 2014-12-30 20:32:45 -05:00
parent ddb4e43fa5
commit 16a4ba8fa5

View File

@ -875,7 +875,7 @@ fn each_split_within<F>(ss: &str, lim: uint, mut it: F) -> bool where
lim = fake_i;
}
let machine: |&mut bool, (uint, char)| -> bool = |cont, (i, c)| {
let mut machine = |&mut: cont: &mut bool, (i, c): (uint, char)| -> bool {
let whitespace = if c.is_whitespace() { Ws } else { Cr };
let limit = if (i - slice_start + 1) <= lim { UnderLim } else { OverLim };