actix-test: re-export types from awc
PR Type
... Other, I guess?
PR Checklist
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] A changelog entry has been made for the appropriate packages.
- [x] Format code with the latest stable rustfmt.
- [ ] (Team) Label with affected crates and semver status.
Overview
At present, if you want to be able to pass (for example) the response from srv.get()... to a function (so you can, say, parse out the response body and parse it as HTML), you've got to add awc as a dependency and use the types from there.
This change re-exports these awc types directly, to avoid the need for the extra dependency, as well as the risk of dependencies getting out of sync and laying waste to the landscape.
I'm not seeing the relationship between my PR and the CI failures; my changes don't seem to relate to TlsConnectorService at all...
I think those test failures are related to rust 1.78, which just released and is now better at detecting unused code
Well, I'm glad it's not my fault, because I had no idea how to fix it. :grinning: I guess a merge/rebase/whatever once the underlying problem is sorted will green up CI to clear for merge.
Working on a fix for the build failures: https://github.com/actix/actix-web/pull/3350
Thanks, this is a fair enough improvement 👍🏻