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
{{ message }}
Repository navigation
fix(jcode-app-core): 7 dead_code warnings in update_product block the Quality Guardrails job #142
The Quality Guardrails CI job fails on crates/jcode-app-core/src/update_product.rs with 7 dead_code warnings:
warning: associated function ... is never used
warning: constant `GITHUB_REPO` is never used
Root cause: mod update_product; at crates/jcode-app-core/src/update.rs:27 is a private module with no pub use, so every pub item inside it is unreachable outside the module and Rust reports all of them as dead.
The seven sites
#
Site
Nature
1
pub const GITHUB_REPO (update_product.rs:24)
public product identity, unreachable
2
pub fn update_repo (:32)
no non-test callers
3
pub fn update_repo_for (:39)
test-only in practice
4
pub fn fork_update_disallowed_error (:116)
genuinely dead
5
pub fn resolve_update_repo (:156)
genuinely dead
6
pub fn is_inside_git_repo (:166)
duplicate of update.rs:160
7
fn log_disabled (:238)
reachable only via the dead update_repo_for
Acceptance
The Quality Guardrails job reports zero dead_code warnings for update_product.rs.
This issue covers unblocking CI. The proper resolution (re-export vs delete vs wire, instead of a blanket #[allow(dead_code)]) is tracked separately in the follow-up issue so the allowance is not permanent.
Activity