Tweak rocket example
This commit is contained in:
parent
de1f5d397d
commit
27c73401ca
@ -77,9 +77,8 @@ async fn list(conn: Connection<Db>, flash: Option<FlashMessage<'_>>) -> Template
|
|||||||
.order_by_asc(post::Column::Id)
|
.order_by_asc(post::Column::Id)
|
||||||
.all(&conn)
|
.all(&conn)
|
||||||
.await
|
.await
|
||||||
.expect("could not retrieve posts")
|
.expect("could not retrieve posts");
|
||||||
.into_iter()
|
|
||||||
.collect::<Vec<_>>();
|
|
||||||
let flash = flash.map(FlashMessage::into_inner);
|
let flash = flash.map(FlashMessage::into_inner);
|
||||||
|
|
||||||
Template::render(
|
Template::render(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user