From 92a600ca20efbc9e9c7089d98162210771d56421 Mon Sep 17 00:00:00 2001 From: dskvr Date: Sat, 14 Sep 2024 16:42:46 +0200 Subject: [PATCH] adjust workfloow --- .github/workflows/static.yml | 7 ++++--- src/lib.rs | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 14e308e..ce7510b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -29,13 +29,14 @@ jobs: toolchain: stable target: wasm32-unknown-unknown - - uses: qmaru/wasm-pack-action@v0.5.0 + - name: Install wasm-pack + uses: qmaru/wasm-pack-action@v0.5.0 with: version: 'latest' - - name: Build with wasm-pack + - name: Clean and Build with wasm-pack run: | - export RUSTFLAGS="-A warnings" + cargo clean wasm-pack build --target web --release - name: Prepare Demo Directory diff --git a/src/lib.rs b/src/lib.rs index ab41650..8ce2064 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -147,7 +147,6 @@ pub fn mine_event( let should_cancel = should_cancel.dyn_into::().ok(); let mut best_pow: u32 = 0; - #[allow(unused_assignments)] let mut best_nonce: u64 = 0; #[allow(unused_assignments)]