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

Address some reviewing #1246

Merged
merged 1 commit into from
Sep 20, 2019
Merged

Address some reviewing #1246

merged 1 commit into from
Sep 20, 2019

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Sep 16, 2019

Addresses some reviewing in #1196

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

One question, otherwise looks good to me.

// TODO: we use `Pin<Box<Pending>>` instead of just `Pending` because `Pending` doesn't
// implement `Unpin` even though it should ; this is just a dummy template parameter and
// the `Box` is never actually created, so this has no repercusion whatsoever
// see https://github.com/rust-lang-nursery/futures-rs/pull/1746
let task: Task<Pin<Box<futures::future::Pending<_>>>, _, _, _, _, _, _> =
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't this also work now?

Suggested change
let task: Task<Pin<Box<futures::future::Pending<_>>>, _, _, _, _, _, _> =
let task: Task<futures::future::Pending<_>, _, _, _, _, _, _> =

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but also why change it?

@tomaka tomaka merged commit c7148d5 into libp2p:stable-futures Sep 20, 2019
@tomaka tomaka deleted the address-review branch September 20, 2019 08:46
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