Gate: unreached .rs files fail in strict mode; drop unused test items

This commit is contained in:
aiongg committed 2026-11-23 06:06:58 +00:00
1 parent 6770b80ba6
commit 5dfd031e77
2 files changed
+2 -6

No files matched your search

+2
View File
@@ -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.
@@ -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<PhotocraftApp> {
let mut s = photocraft_engine::Session::new();
@@ -742,11 +741,6 @@ fn selective_app() -> Box<PhotocraftApp> {
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() {