Skip to content

Commit 66cd8af

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 164771 b: refs/heads/try c: 04652b5 h: refs/heads/master i: 164769: ab90b49 164767: 0e956c7 v: v3
1 parent 231c59b commit 66cd8af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5-
refs/heads/try: f56f9728e626886a89be852e642b84be7be36ab8
5+
refs/heads/try: 04652b57e5b3a635c134fda670b82324ed6053e6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libgetopts/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
html_playground_url = "http://play.rust-lang.org/")]
8888
#![feature(globs, phase)]
8989
#![feature(import_shadowing)]
90+
#![feature(unboxed_closures)]
9091
#![deny(missing_docs)]
9192

9293
#[cfg(test)] #[phase(plugin, link)] extern crate log;
@@ -867,8 +868,9 @@ impl Copy for LengthLimit {}
867868
///
868869
/// Panics during iteration if the string contains a non-whitespace
869870
/// 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+
{
872874
// Just for fun, let's write this as a state machine:
873875

874876
let mut slice_start = 0;

0 commit comments

Comments
 (0)