Skip to content

fix: remove unused imports in doctor checks modules#208

Merged
inureyes merged 2 commits into
mainfrom
fix/doctor-unused-imports
Apr 30, 2026
Merged

fix: remove unused imports in doctor checks modules#208
inureyes merged 2 commits into
mainfrom
fix/doctor-unused-imports

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

  • Remove unused imports across doctor check modules to silence build warnings
  • Affects amd.rs, furiosa.rs, gaudi.rs, and privileges.rs

Removed Imports

  • src/doctor/checks/amd.rs: std::time::Duration, crate::doctor::exec::try_exec
  • src/doctor/checks/furiosa.rs: crate::doctor::exec::which
  • src/doctor/checks/gaudi.rs: std::time::Duration, crate::doctor::exec::{try_exec, which}
  • src/doctor/checks/privileges.rs: std::time::Duration, crate::doctor::exec::try_exec

Test plan

  • cargo build --release produces no warnings
  • cargo fmt --check passes
  • cargo clippy passes

@inureyes inureyes added type:chore Maintenance tasks (build, CI, etc) priority:low Low priority issue status:review Under review labels Apr 30, 2026
Imports are used only inside Linux-only code blocks; restoring them
behind cfg attributes keeps macOS warning-free while making Linux CI
compile. Fixes the regression introduced when the imports were
removed outright.
@inureyes inureyes merged commit 9a814b3 into main Apr 30, 2026
4 checks passed
@inureyes inureyes deleted the fix/doctor-unused-imports branch April 30, 2026 19:59
@inureyes inureyes self-assigned this May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority issue status:review Under review type:chore Maintenance tasks (build, CI, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant