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

Update rusoto_core to Rust 2018. #1360

Merged
merged 1 commit into from
Apr 26, 2019
Merged

Conversation

matthewkmayer
Copy link
Member

Please help keep the CHANGELOG up to date by providing a one sentence summary of your change:

Update rusoto_core to use Rust 2018 edition.

@@ -153,8 +153,8 @@ impl Future for BufferedHttpResponseFuture {
type Error = HttpDispatchError;

fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
self.future.poll().map_err(|err| err.into()).map(|async| {
async.map(|body| BufferedHttpResponse {
self.future.poll().map_err(|err| err.into()).map(|r#async| {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Instead of using a raw identifier here, we should probably restructure this to use the try_ready! macro from futures; e.g:

let body = try_ready!(self.future.poll());

Ok(Async::Ready(BufferedHttpResponse {
    ...
}))

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the pointer! Any changes aside from edition = "2018" in Cargo.toml was the work of cargo fix but it's good to know we can make it better.

@matthewkmayer
Copy link
Member Author

I'm tied up the next few days, shall we merge this in as-is and refactor later?

@srijs
Copy link
Contributor

srijs commented Apr 26, 2019 via email

@matthewkmayer matthewkmayer merged commit 2366bed into master Apr 26, 2019
@matthewkmayer matthewkmayer deleted the rusoto-core-rust-2018 branch April 26, 2019 06:14
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