Skip to content

refactor(core): remove forge type re-export from sessions/types/safety.rs#597

Merged
Wirasm merged 3 commits into
mainfrom
kild/refactor/sessions-remove-forge-reexport
Feb 26, 2026
Merged

refactor(core): remove forge type re-export from sessions/types/safety.rs#597
Wirasm merged 3 commits into
mainfrom
kild/refactor/sessions-remove-forge-reexport

Conversation

@Wirasm

@Wirasm Wirasm commented Feb 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stop re-exporting PrCheckResult through sessions::types::safety module boundary
  • Callers (destroy.rs, types/tests.rs) now import directly from forge::types
  • Enforces clean module boundaries between sessions and forge domains

Test plan

  • cargo fmt --check passes
  • cargo clippy --all -- -D warnings passes
  • cargo test --all passes (all 25 test suites)
  • cargo build --all passes

Closes #591

…y.rs

Stop re-exporting PrCheckResult through the sessions module boundary.
Callers now import directly from forge::types, respecting the module
boundary between sessions and forge domains.

Closes #591
These four tests are identical copies of tests already in
forge/types.rs. With the re-export removed, tests for PrCheckResult
belong only in the forge module where the type is defined.
- Replace array-of-Options iterator pipeline with explicit if-blocks
  for building warning message parts
- Import MergeStrategy alongside PrCheckResult, removing 3 repeated
  qualified paths
- Flatten double-borrow workaround in destroy.rs into a destructuring let
@Wirasm Wirasm merged commit cac4700 into main Feb 26, 2026
6 checks passed
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.

Remove sessions/types/safety.rs re-export of forge types

1 participant