Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-export http_types::{Error, Result} at the crate root #163

Merged
merged 2 commits into from
Apr 22, 2020

Conversation

goto-bus-stop
Copy link
Member

@goto-bus-stop goto-bus-stop commented Apr 22, 2020

So you can easily refer to it directly, like:

async fn some_fn_that_makes_a_request() -> Result<(), surf::Error> {}

instead of needing a separate

use surf::http_types::Error as HttpError;

So you can easily refer to it directly, like:
```js
async fn some_fn_that_makes_a_request() -> Result<(), surf::Error> {}
```
instead of needing a separate
```js
use surf::http_types::Error as HttpError;
```
Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, perhaps http_types::Result could be included as well?

@goto-bus-stop goto-bus-stop changed the title re-export http_types::Error at the crate root re-export http_types::{Error, Result} at the crate root Apr 22, 2020
@goto-bus-stop goto-bus-stop merged commit 2fd9f75 into master Apr 22, 2020
@goto-bus-stop goto-bus-stop deleted the reexport-error branch April 22, 2020 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants