We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177bece commit c3605bcCopy full SHA for c3605bc
crates/rustapi-core/src/app.rs
@@ -914,7 +914,7 @@ impl RustApi {
914
let method_router = MethodRouter::from_boxed(handlers);
915
916
// 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());
+ let router = std::mem::take(&mut self.router);
918
self.router = router.route(&path, method_router);
919
}
920
0 commit comments