mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-25 01:28:21 -04:00
We had *two* copies of `response_from_file`, and all calls to them were always immediately followed by an operation to parse the response as a Ruma response object. We can save a whole lot of boilerplate with a generic function that wraps the json into an HTTP response *and* parses it into a Ruma object.