Skip to content

Commit

Permalink
🐛 修复route克隆问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Dec 22, 2023
1 parent 82792dc commit 58834e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Router {
) -> Self {
self.routes
.insert(path.to_owned(), Route { handler: handler });
self.clone()
self.to_owned()
}

pub fn regist(&mut self, path: &str, route: Route) {
Expand Down

0 comments on commit 58834e9

Please sign in to comment.