You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As of now, returns are like so: Result<type, reqwest::Error> which just makes the user unwrap the method which can be a pain.
Describe the solution you'd like
Change the return type to type so it's easier.
The text was updated successfully, but these errors were encountered:
ANF-Studios
changed the title
[FEATURE] We should return the object itself and not the error
[FEATURE] We should return the object itself and not as a Result<...>
Jan 23, 2021
I looked into this, I think that's how reqwest handles returns. And unwrapping requires us to use ? and there is no other way as far as I know. We might write our own implementation or use another lib if it's not possible.
Is your feature request related to a problem? Please describe.
As of now, returns are like so:
Result<type, reqwest::Error>
which just makes the user unwrap the method which can be a pain.Describe the solution you'd like
Change the return type to
type
so it's easier.The text was updated successfully, but these errors were encountered: