1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

add variable segments support for scope prefix

This commit is contained in:
Nikolay Kim
2018-05-07 13:50:43 -07:00
parent 44c36e93d1
commit a817ddb57b
6 changed files with 306 additions and 63 deletions

View File

@@ -850,7 +850,7 @@ mod tests {
}
macro_rules! from {
($from: expr => $error: pat) => {
($from:expr => $error:pat) => {
match ParseError::from($from) {
e @ $error => {
assert!(format!("{}", e).len() >= 5);
@@ -861,7 +861,7 @@ mod tests {
}
macro_rules! from_and_cause {
($from: expr => $error: pat) => {
($from:expr => $error:pat) => {
match ParseError::from($from) {
e @ $error => {
let desc = format!("{}", e.cause().unwrap());