Skip to content

Commit c3605bc

Browse files
committed
Update app.rs
1 parent 177bece commit c3605bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rustapi-core/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ impl RustApi {
914914
let method_router = MethodRouter::from_boxed(handlers);
915915

916916
// We need to take the router out to call route() which consumes it
917-
let router = std::mem::replace(&mut self.router, crate::router::Router::new());
917+
let router = std::mem::take(&mut self.router);
918918
self.router = router.route(&path, method_router);
919919
}
920920
}

0 commit comments

Comments
 (0)