lib: remove TODO for page rendering

This commit is contained in:
Peter Cai 2020-04-15 14:02:53 +08:00
parent 9ebcbd1d59
commit 2064f36b14
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ async fn default_route(_req: Request, url: Url) -> MyResult<Response> {
}.as_ref())
).internal_err();
} else {
// TODO: Actually render the page...
// Render the page
return Response::new_with_opt_str_and_init(
Some(&render::render_post(url, post).await?),
ResponseInit::new()