Skip to content

chore: clear all build warnings - #1254

Open
futurepastori wants to merge 4 commits into
masterfrom
victor/clear-build-warnings
Open

futurepastori wants to merge 4 commits into
masterfrom
victor/clear-build-warnings

Conversation

@futurepastori

Copy link
Copy Markdown
Member

cargo build is now warning-free (was 18 warnings).

Deleted (dead, self-contained):

  • iac/json.rs: clone_value, as_object, as_object_mut, merge_objects (trivial std wrappers, unused).
  • commands/config/migrate.rs: CaC schema fields we parse but never emit (nixpacks_config_path, restart-policy, sleep, draining/overlap). (Same removal also lands in feat(iac): guided, reversible CaC→IaC migration (cutover/undo/status) #1253; identical deletions merge cleanly.)
  • commands/variable.rs: unused import get_service_variables.
  • util/cac_deprecation.rs: dead display_path/shown local.

Gated / suppressed (reserved or test-only, not deleted):

  • commands/config/mod.rs: find_railway_file is test-only → #[cfg(test)].
  • iac/mod.rs: module re-exports used #[allow(dead_code)] (wrong lint — unused_imports still fired, and it was silently suppressing a whole re-exported tree). Switched to the umbrella #[allow(unused)], which is correct and keeps the module's public surface intact.
  • iac/compiler.rs: compose_patch/add_deletion_markers/map_from_str — reserved patch-composition path, #[allow(dead_code)] with intent noted.
  • controllers/variable_edit.rs: render_variable_plan_plain (not my domain; #[allow(dead_code)] rather than deleting someone's helper).

Test

  • cargo build: 0 warnings.
  • cargo test --bin railway: 1761 passed.

- Remove dead IaC helpers (json.rs value wrappers; a dead CaC schema field set
  in migrate.rs) and an unused import in variable.rs.
- Gate the test-only find_railway_file behind cfg(test).
- Drop a dead local in cac_deprecation.rs.
- Keep reserved/intentional surfaces but silence them correctly:
  iac module re-exports use #[allow(unused)] (umbrella, was the wrong lint);
  compiler patch-composition path and variable_edit plain renderer get
  #[allow(dead_code)] with intent noted.

cargo build is now warning-free; 1761 tests pass.
@futurepastori
futurepastori force-pushed the victor/clear-build-warnings branch from 4572eeb to 32dc792 Compare October 6, 2026 15:08
codyde and others added 2 commits November 10, 2026 08:53
…warnings

Resolved src/iac/mod.rs: kept master's expanded re-export lists (normalize_cdn, VariablePolicyReport, format_variable_policy_line) under the PR's #[allow(unused)] attribute.
render_service_body, render_source (config/mod.rs) and find_all_cac_files
(cac_deprecation.rs) are only called from tests and reintroduced dead-code
warnings after merging master; gate them like find_railway_file so the build
stays warning-free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codyde codyde added the release/skip Author no release label Nov 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/skip Author no release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants