From a59a4e7f9e63a9603268a266c73968ecf690cbec Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 26 Feb 2025 11:49:13 +0100 Subject: [PATCH] Run clippy for WASM --- .github/workflows/ci.yml | 4 ++++ src/wasm_term.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02d191a1..9e666f15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,6 +111,10 @@ jobs: env: CARGO_BUILD_TARGET: ${{ matrix.target }} run: make check + - name: Lint + env: + CARGO_BUILD_TARGET: ${{ matrix.target }} + run: make lint wasi: name: WASI strategy: diff --git a/src/wasm_term.rs b/src/wasm_term.rs index 451ec149..44d84642 100644 --- a/src/wasm_term.rs +++ b/src/wasm_term.rs @@ -12,7 +12,7 @@ pub(crate) const DEFAULT_WIDTH: u16 = 80; pub(crate) fn is_a_terminal(_out: &Term) -> bool { #[cfg(all(target_os = "wasi", target_env = "p1"))] { - unsafe { libc::isatty(out.as_raw_fd()) != 0 } + unsafe { libc::isatty(_out.as_raw_fd()) != 0 } } #[cfg(not(all(target_os = "wasi", target_env = "p1")))] {