Skip to content

docs(tui/remote): justify unused_imports allow on pub(super) re-exports (#103)#178

Open
quangdang46 wants to merge 1 commit into
masterfrom
docs/tui-remote-unused-imports-justification
Open

docs(tui/remote): justify unused_imports allow on pub(super) re-exports (#103)#178
quangdang46 wants to merge 1 commit into
masterfrom
docs/tui-remote-unused-imports-justification

Conversation

@quangdang46
Copy link
Copy Markdown
Owner

What

The two #[allow(unused_imports)] suppressions on pub(super) use blocks in src/tui/app/remote.rs are load-bearing: rustc flags re-exports as unused when none of the names are referenced inside the same module, but sibling modules and tests consume them through super::remote::*.

This addresses issue #103: #103

Changes

  • src/tui/app/remote.rs: replace the terse comment with a concrete explanation referencing the cross-module-boundary lint behavior on both #[allow(unused_imports)] sites.
  • docs/CODE_QUALITY_TODO.md: tick the matching item.

Tests

cargo fmt --check clean; comment-only change, no behavior change.

Notes

Ports upstream PR 1jehuang#125.

The two #[allow(unused_imports)] suppressions on `pub(super) use` blocks
in src/tui/app/remote.rs are load-bearing: rustc flags re-exports as
unused when their names aren't referenced inside the same module, but
sibling modules and tests do consume them through `super::remote::*`.
Removing the allow would generate noise on every build.

Replace the implicit terse comment with an explicit explanation of the
cross-module-boundary lint behavior so future contributors don't try
to remove the allow.

Tick the matching item in docs/CODE_QUALITY_TODO.md.

Ports upstream PR 1jehuang#125.
Closes #103
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.

1 participant