mirror of https://github.com/rwf2/Rocket.git
Revert parsing bug introduced in commit 43bfefc1b2
.
This commit is contained in:
parent
81bc2466eb
commit
a5e1f8246c
|
@ -107,7 +107,7 @@ impl<'s, 'a, 'c> Iterator for ParamIter<'s, 'a, 'c> {
|
|||
if param.len() == 0 {
|
||||
self.ctxt.span_err(param_span, "Parameter names cannot be empty.");
|
||||
None
|
||||
} else if param.contains(char::is_alphanumeric) {
|
||||
} else if param.contains(|c: char| !c.is_alphanumeric()) {
|
||||
self.ctxt.span_err(param_span, "Parameters must be alphanumeric.");
|
||||
None
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue