Skip to content

fix: gate SocketOptionKind import behind cfg(not(windows)) in apply.rs - #2866

Merged
oferchen merged 1 commit into
masterfrom
fix/windows-socket-option-unused-import
Mar 21, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/windows-socket-option-unused-import

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Gate the SocketOptionKind import with cfg(not(target_family = windows)) to fix the Windows build. On Windows, only the Bool and Int variants exist (On is cfg-gated out), and the Windows code path does not reference SocketOptionKind by name. With RUSTFLAGS -D warnings, the unused import becomes a hard error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant