1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 08:24:28 +02:00
This commit is contained in:
Rob Ede
2022-02-08 08:00:47 +00:00
parent 0c144054cb
commit 3d621677a5
6 changed files with 18 additions and 14 deletions

View File

@ -898,7 +898,7 @@ impl ResourceDef {
}
let pattern_re_set = RegexSet::new(re_set).unwrap();
let segments = segments.unwrap_or_else(Vec::new);
let segments = segments.unwrap_or_default();
(
PatternType::DynamicSet(pattern_re_set, pattern_data),