Using the destructuring might mistakenly result in a wrong output. This could be misleading. For example an error code of 500 would result in the panic message while its still an API Error.
This moves the assertions to assert_eq and only destructures the Error::Api
Using the destructuring might mistakenly result in a wrong output. This could be misleading. For example an error code of 500 would result in the panic message while its still an API Error.
This moves the assertions to
assert_eq
and only destructures theError::Api