mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-19 00:00:14 +02: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user