Skip to content

Commit 16a4ba8

Browse files
author
Jorge Aparicio
committed
getopts: unbox closures used in let bindings
1 parent ddb4e43 commit 16a4ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ fn each_split_within<F>(ss: &str, lim: uint, mut it: F) -> bool where
875875
lim = fake_i;
876876
}
877877

878-
let machine: |&mut bool, (uint, char)| -> bool = |cont, (i, c)| {
878+
let mut machine = |&mut: cont: &mut bool, (i, c): (uint, char)| -> bool {
879879
let whitespace = if c.is_whitespace() { Ws } else { Cr };
880880
let limit = if (i - slice_start + 1) <= lim { UnderLim } else { OverLim };
881881

0 commit comments

Comments
 (0)