Skip to content

fix(gui): resolve precheck lint errors in x11 module#83

Merged
StudentWeis merged 7 commits into
mainfrom
fix/82-precheck-lint-errors-x11
May 6, 2026
Merged

fix(gui): resolve precheck lint errors in x11 module#83
StudentWeis merged 7 commits into
mainfrom
fix/82-precheck-lint-errors-x11

Conversation

@StudentWeis
Copy link
Copy Markdown
Owner

Summary

Fix three lint errors that caused CI precheck to fail on main: unnecessary qualification in src/app.rs and src/gui/x11.rs, and missing Debug implementation on the X11 struct.

Linked Issue

Closes #82

Changes

  • Move std::env to top-level import in src/app.rs so env::args() works on all platforms
  • Replace Box<dyn std::error::Error> with Box<dyn Error> in wait_actvate_window (already imported)
  • Add #[derive(Debug)] to pub struct X11 (RustConnection implements Debug)

Testing

  • scripts/precheck.sh passes locally
  • No new warnings or errors introduced

- Replace std::env::args() with env::args() after moving env to top-level import
- Replace Box<dyn std::error::Error> with Box<dyn Error> in wait_actvate_window
- Add #[derive(Debug)] to X11 struct (RustConnection implements Debug)

Refs #82
Replace #[derive(Debug)] with #[allow(missing_debug_implementations)] to avoid clippy::missing_errors_doc violations on public methods.

Refs #82
Implement std::fmt::Debug manually instead of using #[derive(Debug)] or #[allow(...)] to satisfy missing_debug_implementations = "deny" without triggering clippy lint violations.

Refs #82
Add #[allow(clippy::missing_errors_doc)] to impl X11 block since all public methods return standard X11 connection errors that don't require detailed documentation.

Refs #82
Add complete documentation with # Errors sections to all public methods in X11 impl block to satisfy clippy::missing_errors_doc lint.

Refs #82
Fix clippy::doc_markdown lint error by wrapping the X11 atom name in backticks.

Refs #82
- Replace std::mem::size_of with size_of (already imported) in utils.rs:235
- Remove redundant SetWindowPos import in utils.rs:371

Refs #82
@StudentWeis StudentWeis merged commit d0f5f96 into main May 6, 2026
8 checks passed
@StudentWeis StudentWeis deleted the fix/82-precheck-lint-errors-x11 branch May 7, 2026 01:07
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.

fix(gui): resolve precheck lint errors in x11 module

1 participant