diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7b1d7aaee..4359272aca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -192,6 +192,8 @@ jobs: # The tests build with the optional craft-fonts input (crates/text/build.rs), so the # Japanese font tests that skip without it run. Same commit as release.yml. craft-fonts-ref: cc9269cd8d8258785dac603fba3122e5d2556795 + # Every .rs file is reached by a mod, #[path] or include!; a new unreached file fails the lint leg. + unreached-rs-mode: strict # CI test binaries carry no debuginfo and no symbols (CARGO_PROFILE_TEST_STRIP below): a # test build drops from ~19 to ~6.5 GB. A panic still names its file and line; only # backtrace frames lose names and lines. Local builds keep Cargo.toml's line tables. diff --git a/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs b/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs index 1ecae26d66..e7016cab31 100644 --- a/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs +++ b/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs @@ -7,7 +7,6 @@ use serde_json::{Map, Value, json}; use crate::PhotocraftApp; use crate::adjust_editors::values; -use crate::tone::{self, HistSource}; fn app_with_image() -> Box { let mut s = photocraft_engine::Session::new(); @@ -742,11 +741,6 @@ fn selective_app() -> Box { PhotocraftApp::new(s, crate::Services::default()) } -fn pixel(app: &PhotocraftApp, x: usize, y: usize) -> [f32; 4] { - let st = app.session.active().unwrap(); - photocraft_compose::render(&st.doc, st.doc.bounds()).px[y * 64 + x] -} - /// Recorded parameters the editor cannot read never reach the engine: the dialog refuses to open or OK refuses. #[test] fn selective_color_ok_on_malformed_params_reports_and_commits_nothing() {