File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/try/src/libgetopts Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5
- refs/heads/try: f56f9728e626886a89be852e642b84be7be36ab8
5
+ refs/heads/try: 04652b57e5b3a635c134fda670b82324ed6053e6
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change 87
87
html_playground_url = "http://play.rust-lang.org/" ) ]
88
88
#![ feature( globs, phase) ]
89
89
#![ feature( import_shadowing) ]
90
+ #![ feature( unboxed_closures) ]
90
91
#![ deny( missing_docs) ]
91
92
92
93
#[ cfg( test) ] #[ phase( plugin, link) ] extern crate log;
@@ -867,8 +868,9 @@ impl Copy for LengthLimit {}
867
868
///
868
869
/// Panics during iteration if the string contains a non-whitespace
869
870
/// sequence longer than the limit.
870
- fn each_split_within < ' a > ( ss : & ' a str , lim : uint , it : |& ' a str | -> bool )
871
- -> bool {
871
+ fn each_split_within < F > ( ss : & str , lim : uint , mut it : F ) -> bool where
872
+ F : FnMut ( & str ) -> bool
873
+ {
872
874
// Just for fun, let's write this as a state machine:
873
875
874
876
let mut slice_start = 0 ;
You can’t perform that action at this time.
0 commit comments