Skip to content

Commit bc63c50

Browse files
authored
Fix a compilation error on aarch64-unknown-linux-gnu_ilp32 (#560)
1 parent 1f9837c commit bc63c50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ jobs:
204204
- run: cargo check -Z build-std --target x86_64-unknown-dragonfly --all-targets --features=all-apis
205205
- run: cargo check -Z build-std --target sparc-unknown-linux-gnu --all-targets --features=all-apis
206206
- run: cargo check -Z build-std --target armv7-unknown-freebsd --all-targets --features=all-apis
207+
# Omit --all-targets on gnu_ilp32 because dev-dependency tempfile depends on an older rustix
208+
- run: cargo check -Z build-std --target aarch64-unknown-linux-gnu_ilp32 --features=all-apis
207209
# Omit --all-targets on haiku because not all the tests build yet.
208210
- run: cargo check -Z build-std --target x86_64-unknown-haiku --features=all-apis
209211
# x86_64-uwp-windows-msvc isn't currently working.

src/fs/raw_dir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ impl<'buf, Fd: AsFd> RawDir<'buf, Fd> {
207207

208208
Some(Ok(RawDirEntry {
209209
file_type: dirent.d_type,
210-
inode_number: dirent.d_ino,
211-
next_entry_cookie: dirent.d_off,
210+
inode_number: dirent.d_ino.into(),
211+
next_entry_cookie: dirent.d_off.into(),
212212
// SAFETY: the kernel guarantees a NUL terminated string.
213213
file_name: unsafe { CStr::from_ptr(dirent.d_name.as_ptr().cast()) },
214214
}))

0 commit comments

Comments
 (0)