Repository navigation
fix: clean up rust-preview compiler and Clippy warnings - #7122
Merged
Merged
Conversation
No tests used the transport fixture module, including the CLI integration test that imported it. Remove both unused entry points and the dev-only dependencies. Generated-by: Maka (OpenAI)
Keep native preview producers behind their actual feature gates. Simplify redundant data and arguments, bound enum payload sizes without changing wire schemas, and make the AppKit shell observe its exit status. Keep test support reachable from the harnesses that share it. Generated-by: Maka (OpenAI)
An unbundled CLI test process may have no NSRunningApplication at all. Check the exact refusal for the actual AppKit precondition; either way the window remains unbindable and its inventory identity is preserved. Generated-by: Maka (OpenAI)
Remove the unreferenced X11 wheel fixture left after its tests were retired, initialize the Linux desktop test policy directly, and keep the macOS Host shell dependency off other platforms. Generated-by: Maka (OpenAI)
Windows does not use Unix closure records or directory descriptor readers. Keep their existing Unix implementations and the Windows unsupported symlink path, without compiling unreachable code or unused state. Generated-by: Maka (OpenAI)
Keep publication validation available on Windows, compile the existing Unix publication and ACP execution helpers only where consumed, and exclude reconnect fields from the Direct2D shell. Generated-by: Maka (OpenAI)
Use the existing Windows owner directly without the unused embedded-session wrappers. Carry the native coordinate frame together with its expected generation and preserve the existing admission and settlement order. Generated-by: Maka (OpenAI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clean up the workspace compiler/Clippy findings without adding lint suppressions or changing CI routing. The root workspace does not select vendored crates for linting; Biome remains the existing format-only check.
b499e516b: an unbundled CLI PID may not have an NSRunningApplication. The test still checks the exact refusal, bindability and inventory identity.libcdependency to macOS.Verification
cargo clippy --locked --workspace --all-targets --all-features -- -D warnings, plusmaka-computer-use --all-targets --no-default-features -- -D warnings.cargo fmt --all -- --check,git diff --check, andnode scripts/ci.mjs run tooling(336 tests, Biome format, licenses).node scripts/ci.mjs run contractsconfirms the generated contracts and TypeScript consumers are unchanged.cargo clippy --locked --workspace --all-targets -- -D warnings,-p maka-computer-use --all-targets --no-default-features, and-p maka-cli --features desktop-tests --test native-desktopwith-D warningsall passed. The excluded NSH Linux dependency still emits its two existingdead_codewarnings.cargo clippy --locked --workspace --all-targets -- -D warnings,-p maka-computer-use --all-targets --no-default-features, and-p maka-cli --features desktop-tests --test native-desktopwith-D warningsall passed. The isolatedmaka-process --all-targetsstrict lint also passed; all 28 bridge lib tests passed with default features off. The previous first-partyio_error,mutation_io, andunconfirmedwarnings are absent. The excludedgix-discoverdependency still prints its existing Windowsmetadatadead-code warning.AI use
Tool(s) and scope: Maka (OpenAI) scanned and reviewed compiler/Clippy findings, edited the source and fixtures, and ran verification. All commits have a
Generated-bytrailer.Checklist
Does this PR entail a change in behavior?