Skip to content

Commit 3697fb7

Browse files
authored
Merge pull request #1716 from najamelan/fix/futures-preview-0.3.0-alpha.18
Update to work with futures-preview 0.3.0-alpha.18
2 parents bb6c013 + 9f7afa8 commit 3697fb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/futures/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ cfg-if = "0.1.9"
1515
futures = "0.1.20"
1616
js-sys = { path = "../js-sys", version = '0.3.25' }
1717
wasm-bindgen = { path = "../..", version = '0.2.48' }
18-
futures-util-preview = { version = "0.3.0-alpha.15", optional = true }
19-
futures-channel-preview = { version = "0.3.0-alpha.15", optional = true }
18+
futures-util-preview = { version = "0.3.0-alpha.18", optional = true }
19+
futures-channel-preview = { version = "0.3.0-alpha.18", optional = true }
2020
lazy_static = { version = "1.3.0", optional = true }
2121

2222
[target.'cfg(target_feature = "atomics")'.dependencies.web-sys]

crates/futures/src/futures_0_3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ where
248248
drop(lock);
249249

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

0 commit comments

Comments
 (0)