You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: centralize path-anchor handling in import path resolution
- Added `PathAnchor` helpers in `src/rust_syntax.rs` to classify leading path segments (`crate`, `super`, `self`, `Self`, names) and removed scattered string-comparison dispatch from path rewriting and resolution paths.
- Replaced repeated inline `crate`/`super`/`self` handling in compiler and fix modules with `PathAnchor`-driven logic to keep leading-segment interpretation aligned across `src/fixes` and `src/compiler`.
- Rewrote two two-arm `match` expressions into combinator form in `src/fixes/runner/apply.rs` and `src/selection/metadata.rs` to use `map_or`/`map_or_else`.
0 commit comments