You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
substring.next().map_or(Ok(()), |extra| Err(format!("invalid options for function_in_lines filter\nexpected {format}\n, found extra stuff after {format}: {extra}")))
15
+
substring.next().map_or(Ok(()), |extra| Err(format!("invalid options for {filter} filter\nexpected {format}\n, found extra stuff after {format}: {extra}")))
14
16
}
15
17
pubfnlabel<'a>(
16
18
substring:&mutimplIterator<Item = &'astr>,
17
19
format:&str,
18
20
label:&str,
21
+
filter:&str,
19
22
) -> Result<(),String>{
20
-
substring.next().ok_or_else(||format!("invalid options for function_in_lines filter\nexpected {format}\n missing label {label}"))
23
+
substring.next().ok_or_else(||format!("invalid options for {filter} filter\nexpected {format}\n missing label {label}"))
21
24
.and_then(|l| {
22
25
if label == l {
23
26
Ok(())
24
27
}else{
25
-
Err(format!("invalid options for function_in_lines filter\n expected {format}\nexpected {label}, found {l}"))
28
+
Err(format!("invalid options for {filter} filter\n expected {format}\nexpected {label}, found {l}"))
26
29
}
27
30
}
28
31
)
@@ -32,6 +35,7 @@ pub fn string<'a>(
32
35
substring:&mutimplIterator<Item = &'astr>,
33
36
format:&str,
34
37
position:&str,
38
+
filter:&str,
35
39
) -> Result<String,String>{
36
-
substring.next().map(ToOwned::to_owned).ok_or_else(||format!("invalid options for function_in_lines filter\nexpected {format}\n missing {position} [number]"))
40
+
substring.next().map(ToOwned::to_owned).ok_or_else(||format!("invalid options for function_with_parameter filter\nexpected {format}\n missing {position} [number]"))
0 commit comments