You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: release lint fails on aarch64: unnecessary_cast on wchar_t/c_char in obs-util #1484
The daily release has failed since 2026-10-19 (no release after 0.1.0-beta.20261018), and so does the scheduled full run: the release gate's Rust Cross Lint (ci/local_gate.py --lane cross-release) fails clippy with -D warnings on aarch64-unknown-linux-gnu.
Location
clippy::unnecessary_cast in rust/obs-util, on targets where the C character types are unsigned:
src/platform/unix/file.rs:55 and :158 (File::open_wide, mbs_to_utf8): c as u32 on wchar_t. wchar_t is i32 on x86-64 Linux and macOS and u32 on aarch64 Linux.
src/ffi/cf_parser.rs:39 and :56 (from obs-util: port cf-parser (#1466) #1467, merged 2026-10-20): as u8 on c_char, which is u8 on aarch64 Linux and aarch64-pc-windows-msvc.
The casts are needed on the targets where the types are signed, so the PR gate (x86-64 Linux host, x86_64-pc-windows-msvc, aarch64-apple-darwin) passes; only the release-only targets see them as no-ops.
Class
Release blocker (CI).
How it is reached
Release OBS-Studio-Rust run 39284837053 (2026-10-19), job "Release gate / Rust Cross Lint (release targets)": error: casting to the same type is unnecessary (u32 -> u32) at file.rs:158, and the same at :55. The cf_parser.rs ones landed after that run and fail the same lane on current master.
Fix
Keep the casts and allow the lint where the type is target-dependent, with a comment, as ffi/dstr.rs and platform/unix/nix.rs already do. PR follows.
Activity
rdoupe commentedon Oct 20, 2026
Claiming: fix ready,
ci/local_gate.py --lane cross-releasepasses locally; PR follows now.obs-util: Allow target-dependent wchar_t and c_char casts (obs-rust#1485