Skip to content

Commit c779a7a

Browse files
authored
Fix a build error with no-default-features and the libc backend. (#646)
1 parent 67790f1 commit c779a7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ jobs:
155155
with:
156156
toolchain: ${{ matrix.rust }}
157157
- run: cargo check --workspace --release --no-default-features -vv
158+
- run: cargo check --workspace --release --no-default-features --features use-libc -vv
158159
- run: cargo check --workspace --release --no-default-features --features all-apis -vv
160+
- run: cargo check --workspace --release --no-default-features --features all-apis,use-libc -vv
159161

160162
check_nightly:
161163
name: Check nightly-only targets

src/backend/libc/fs/dir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use crate::fs::{fstatvfs, StatVfs};
1919
use crate::io;
2020
#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]
2121
use crate::process::fchdir;
22-
#[cfg(target_os = "wasi")]
2322
use alloc::borrow::ToOwned;
2423
#[cfg(not(linux_like))]
2524
use c::readdir as libc_readdir;

0 commit comments

Comments
 (0)