You just need to move the reference, not the connection itself: async fn index(pool: web::Data<DbPool>, name: web::Path<(String)>) -> impl ...
確定! 回上一頁