File: add-jscast-use.patch

package info (click to toggle)
rust-wasm-bindgen-futures 0.4.50-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: javascript: 6; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/stream.rs b/src/stream.rs
index fe35d81..69616d8 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -12,6 +12,7 @@ use core::task::{Context, Poll};
 use futures_core::stream::Stream;
 use js_sys::{AsyncIterator, IteratorNext};
 use wasm_bindgen::prelude::*;
+use wasm_bindgen::JsCast;
 
 /// A `Stream` that yields values from an underlying `AsyncIterator`.
 pub struct JsStream {