style(linter): use top-level imports#19076
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR is a style-only refactor in tsgolint.rs to reduce repetition by moving previously function-local std imports to the module level and using the already-imported FixKind identifier directly instead of crate::fixer::FixKind.
Changes:
- Move
Cow,iter, andmemimports to the existing top-leveluse std::{ ... }block. - Replace
crate::fixer::FixKind::{Fix,Suggestion}withFixKind::{Fix,Suggestion}whereFixKindis already in scope. - Update the test module import list to include
FixKinddirectly.
Merge activity
|
ee2cfe2 to
5986027
Compare
429ad2b to
d793381
Compare
Style-only change. Shorten code by using top-level import instead of repeating `crate::fixer::FixKind` in many places. Also move a `use::std::...` statement up to top level.
d793381 to
4ce3772
Compare
5986027 to
7160485
Compare
Style-only change. Shorten code by using top-level import instead of repeating `crate::fixer::FixKind` in many places. Also move a `use::std::...` statement up to top level.

Style-only change. Shorten code by using top-level import instead of repeating
crate::fixer::FixKindin many places.Also move a
use::std::...statement up to top level.