From 513bf1638bc2ee7078de6d8eec68ebccc53a1d61 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sat, 22 Aug 2020 21:32:54 -0500 Subject: [PATCH] Don't pass --all to cargo in ci --- .github/workflows/ci.yaml | 7 ++++++- wasm/lib/src/convert.rs | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d30eb909f..5efca9a45 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,7 @@ on: name: CI env: - CARGO_ARGS: --all --features ssl + CARGO_ARGS: --features ssl jobs: rust_tests: @@ -112,6 +112,11 @@ jobs: with: command: clippy args: ${{ env.CARGO_ARGS }} -- -Dwarnings + - name: run clippy on wasm + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --manifest-path=wasm/lib/Cargo.toml -- -Dwarnings - uses: actions/setup-python@v1 with: python-version: 3.8 diff --git a/wasm/lib/src/convert.rs b/wasm/lib/src/convert.rs index df2d9741a..793fa3f15 100644 --- a/wasm/lib/src/convert.rs +++ b/wasm/lib/src/convert.rs @@ -1,5 +1,3 @@ -use std::cell::RefCell; - use js_sys::{Array, ArrayBuffer, Object, Promise, Reflect, SyntaxError, Uint8Array}; use wasm_bindgen::{closure::Closure, prelude::*, JsCast};