Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejhirsz committed Apr 10, 2024
1 parent 781539f commit 33e40b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions crates/kobold_router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ impl Router {
V: View,
{
self.router
.insert(route, Box::new(move |params| {
let view = render(params);
.insert(
route,
Box::new(move |params| {
let view = render(params);

start_route(view)
}))
start_route(view)
}),
)
.expect_throw("Failed to insert route");
}

Expand Down

0 comments on commit 33e40b3

Please sign in to comment.