Skip to content

Fix Linux build: convert rustix errors and satisfy clippy - #1

Merged
autoantohaki merged 1 commit into
mainfrom
fix/unix-rustix-errno
Oct 21, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
fix/unix-rustix-errno

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Before: CI on main has been red since the last two pushes. On Linux, cargo check fails in crates/impossible-models/src/store.rs because ? is applied to rustix calls that return rustix::io::Errno, which has no conversion into the crate's Error. The Windows job is then cancelled by the matrix, so nothing after Check runs on either OS.

After: the workspace builds on Linux again, and cargo clippy --all-targets -D warnings, cargo test --workspace and the real-binary e2e test all pass on Linux (run locally in a rust:1.85.1 container).

How: add a Unix-only From<rustix::io::Errno> for Error that goes through std::io::Error, matching the existing Error::Io path. Once that compiled, clippy flagged map_open_error in impossible-server-core/src/security.rs for using an underscore-prefixed binding on Unix, so it now takes &std::io::Error with a normal name and allows the unused variable on non-Unix targets only.

The Unix-only model store used ? on rustix calls whose Errno had no
conversion into the crate error, so cargo check failed on Linux and CI
on main has been red since. Add the conversion, and take the credential
open error by reference so the Unix branch of map_open_error passes
clippy without an underscore-prefixed binding.
@autoantohaki
autoantohaki merged commit f513894 into main Oct 21, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant