Warp 正在返回错误,
error[E0277]: the trait bound `impl warp::Future: warp::filter::FilterBase` is not satisfied
--> src/http.rs:31:26
|
31 | let routes = index().or(users());
| ^^^^^^^ the trait `warp::filter::FilterBase` is not implemented for `impl warp::Future`
我基本上有这个,
pub async fn users() -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
# stuff
}
我究竟做错了什么?