Skip to content

Commit

Permalink
Run clippy for WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Feb 26, 2025
1 parent c7f884e commit a59a4e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/wasm_term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))]
{
Expand Down

0 comments on commit a59a4e7

Please sign in to comment.