about summary refs log tree commit diff
path: root/src/libgetopts
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-30 20:32:45 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-31 22:50:26 -0500
commit16a4ba8fa5c717bd62a094210ad5926227d7ea95 (patch)
tree526ece984c0a575cf35290f3eb900bceeb8d4921 /src/libgetopts
parentddb4e43fa51de0186b6bab12353cb25f5e785a4f (diff)
downloadrust-16a4ba8fa5c717bd62a094210ad5926227d7ea95.tar.gz
rust-16a4ba8fa5c717bd62a094210ad5926227d7ea95.zip
getopts: unbox closures used in let bindings
Diffstat (limited to 'src/libgetopts')
-rw-r--r--src/libgetopts/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs
index 0184222b9e0..0db0bd413ac 100644
--- a/src/libgetopts/lib.rs
+++ b/src/libgetopts/lib.rs
@@ -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 };