Skip to content

Commit 355d3e3

Browse files
bors[bot]Mubelotix
andauthored
Merge #136
136: Fix wasm example compilation r=curquiza a=Mubelotix The bug was here for a long time but we don't run CI with the Wasm target and we did not try to compile the webapp since the merge of the bug. Co-authored-by: Mubelotix <mubelotix@gmail.com>
2 parents 4062a4a + 121c102 commit 355d3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pub struct Progress<'a> {
2727
}
2828

2929
impl<'a> Progress<'a> {
30-
///
3130
/// # Example
3231
///
3332
/// ```
@@ -143,6 +142,7 @@ pub(crate) async fn async_sleep(interval: Duration) {
143142
#[cfg(target_arch = "wasm32")]
144143
pub(crate) async fn async_sleep(interval: Duration) {
145144
use wasm_bindgen_futures::JsFuture;
145+
use std::convert::TryInto;
146146

147147
JsFuture::from(js_sys::Promise::new(&mut |yes, _| {
148148
web_sys::window()

0 commit comments

Comments
 (0)