Skip to content

Commit

Permalink
Merge pull request #1716 from najamelan/fix/futures-preview-0.3.0-alp…
Browse files Browse the repository at this point in the history
…ha.18

Update to work with futures-preview 0.3.0-alpha.18
  • Loading branch information
alexcrichton authored Aug 12, 2019
2 parents bb6c013 + 9f7afa8 commit 3697fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/futures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ cfg-if = "0.1.9"
futures = "0.1.20"
js-sys = { path = "../js-sys", version = '0.3.25' }
wasm-bindgen = { path = "../..", version = '0.2.48' }
futures-util-preview = { version = "0.3.0-alpha.15", optional = true }
futures-channel-preview = { version = "0.3.0-alpha.15", optional = true }
futures-util-preview = { version = "0.3.0-alpha.18", optional = true }
futures-channel-preview = { version = "0.3.0-alpha.18", optional = true }
lazy_static = { version = "1.3.0", optional = true }

[target.'cfg(target_feature = "atomics")'.dependencies.web-sys]
Expand Down
2 changes: 1 addition & 1 deletion crates/futures/src/futures_0_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ where
drop(lock);

// TODO is there some way of saving these so they don't need to be recreated all the time ?
let waker = ArcWake::into_waker(task.clone());
let waker = futures_util::task::waker(task.clone());
let cx = &mut Context::from_waker(&waker);
Pin::new(future).poll(cx)
};
Expand Down

0 comments on commit 3697fb7

Please sign in to comment.