Skip to content

Commit 9786d98

Browse files
committed
Fix wasm, add gitlab workflow
1 parent 2d08c46 commit 9786d98

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,14 @@ jobs:
6262
git -c user.name='ci' -c user.email='ci' commit -m 'Deploy futures-timer API documentation'
6363
git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
6464
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' && github.repository == 'async-rs/futures-timer'
65+
66+
check_wasm:
67+
name: Check WASM
68+
needs: [test]
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@master
72+
- name: Install Rust
73+
run: rustup update stable && rustup add target wasm32-unknown-unknown
74+
- name: cargo test
75+
run: cargo test --target wasm32-unknown-unknown --features wasm-bindgen

src/delay_wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Delay {
2323
/// Resets the timeout.
2424
#[inline]
2525
pub fn reset(&mut self, dur: Duration) {
26-
*self = Delay::new(at);
26+
*self = Delay::new(dur);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)