1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 09:36:39 +02:00

fix nested resource map registration #915

This commit is contained in:
Nikolay Kim
2019-06-15 22:12:20 +06:00
parent d7ec241fd0
commit d293ae2a69
3 changed files with 26 additions and 1 deletions

View File

@@ -38,7 +38,8 @@ impl ResourceMap {
pub(crate) fn finish(&self, current: Rc<ResourceMap>) {
for (_, nested) in &self.patterns {
if let Some(ref nested) = nested {
*nested.parent.borrow_mut() = Some(current.clone())
*nested.parent.borrow_mut() = Some(current.clone());
nested.finish(nested.clone());
}
}
}