mirror of
https://github.com/tokio-rs/axum.git
synced 2025-02-03 21:37:15 +01:00
fix examples/todos
's async fn todos_index
iter_overeager_cloned (#794)
* remove unused `axum`'s dependency:`tokio-util` * fix `examples/todos`'s `async fn todos_index` iter_overeager_cloned
This commit is contained in:
parent
4ccc4bea71
commit
cb168b96fe
1 changed files with 1 additions and 1 deletions
|
@ -90,9 +90,9 @@ async fn todos_index(
|
|||
|
||||
let todos = todos
|
||||
.values()
|
||||
.cloned()
|
||||
.skip(pagination.offset.unwrap_or(0))
|
||||
.take(pagination.limit.unwrap_or(usize::MAX))
|
||||
.cloned()
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Json(todos)
|
||||
|
|
Loading…
Add table
Reference in a new issue