Emit floats an f32 can hold, and drop the format! that formats nothing
CI runs cargo fmt --check and clippy -D warnings, and this branch had never been through either. Both would have failed it. The bulk was the generated colour tables: eight significant figures where an f32 carries about 7.2, so the eighth is noise that rounds away at compile time and clippy's excessive_precision says so 109 times over. Fixed in the generator rather than only in the file, so it stays fixed -- and the file is trimmed in place rather than re-derived, because regenerating it needs a colour-science stack that has nothing to do with the defect. The format! in the composer is mine too, from extracting the rendering tail: the braces in it were escaped because the text used to live inside a larger template, and once extracted the escapes are noise and the call formats nothing. Also here, and clearly not mine: an unused import and a shadowed binding in dr-gpu, and an unused import in a test. They are pre-existing -- clippy has been failing on master before this branch existed, on lints like is_multiple_of that arrived with a toolchain rather than with anyone's code. Fixed because CI cannot go green around them, and called out because a merge commit is a bad place to quietly edit someone else's crate. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+108
-27
@@ -6,35 +6,116 @@
|
||||
|
||||
/// Each stock's id and its YAML, in the order the converter ran.
|
||||
pub static BUILT_IN: &[(&str, &str)] = &[
|
||||
("fujifilm_c200", include_str!("../profiles/fujifilm_c200.yaml")),
|
||||
("fujifilm_crystal_archive_typeii", include_str!("../profiles/fujifilm_crystal_archive_typeii.yaml")),
|
||||
("fujifilm_pro_400h", include_str!("../profiles/fujifilm_pro_400h.yaml")),
|
||||
("fujifilm_provia_100f", include_str!("../profiles/fujifilm_provia_100f.yaml")),
|
||||
("fujifilm_velvia_100", include_str!("../profiles/fujifilm_velvia_100.yaml")),
|
||||
("fujifilm_xtra_400", include_str!("../profiles/fujifilm_xtra_400.yaml")),
|
||||
(
|
||||
"fujifilm_c200",
|
||||
include_str!("../profiles/fujifilm_c200.yaml"),
|
||||
),
|
||||
(
|
||||
"fujifilm_crystal_archive_typeii",
|
||||
include_str!("../profiles/fujifilm_crystal_archive_typeii.yaml"),
|
||||
),
|
||||
(
|
||||
"fujifilm_pro_400h",
|
||||
include_str!("../profiles/fujifilm_pro_400h.yaml"),
|
||||
),
|
||||
(
|
||||
"fujifilm_provia_100f",
|
||||
include_str!("../profiles/fujifilm_provia_100f.yaml"),
|
||||
),
|
||||
(
|
||||
"fujifilm_velvia_100",
|
||||
include_str!("../profiles/fujifilm_velvia_100.yaml"),
|
||||
),
|
||||
(
|
||||
"fujifilm_xtra_400",
|
||||
include_str!("../profiles/fujifilm_xtra_400.yaml"),
|
||||
),
|
||||
("kodak_2383", include_str!("../profiles/kodak_2383.yaml")),
|
||||
("kodak_2393", include_str!("../profiles/kodak_2393.yaml")),
|
||||
("kodak_ektachrome_100", include_str!("../profiles/kodak_ektachrome_100.yaml")),
|
||||
("kodak_ektacolor_edge", include_str!("../profiles/kodak_ektacolor_edge.yaml")),
|
||||
("kodak_ektar_100", include_str!("../profiles/kodak_ektar_100.yaml")),
|
||||
("kodak_endura_premier", include_str!("../profiles/kodak_endura_premier.yaml")),
|
||||
("kodak_gold_200", include_str!("../profiles/kodak_gold_200.yaml")),
|
||||
("kodak_kodachrome_64", include_str!("../profiles/kodak_kodachrome_64.yaml")),
|
||||
("kodak_portra_160", include_str!("../profiles/kodak_portra_160.yaml")),
|
||||
("kodak_portra_400", include_str!("../profiles/kodak_portra_400.yaml")),
|
||||
("kodak_portra_800", include_str!("../profiles/kodak_portra_800.yaml")),
|
||||
("kodak_portra_800_push1", include_str!("../profiles/kodak_portra_800_push1.yaml")),
|
||||
("kodak_portra_800_push2", include_str!("../profiles/kodak_portra_800_push2.yaml")),
|
||||
("kodak_portra_endura", include_str!("../profiles/kodak_portra_endura.yaml")),
|
||||
("kodak_supra_endura", include_str!("../profiles/kodak_supra_endura.yaml")),
|
||||
("kodak_ultra_endura", include_str!("../profiles/kodak_ultra_endura.yaml")),
|
||||
("kodak_ultramax_400", include_str!("../profiles/kodak_ultramax_400.yaml")),
|
||||
("kodak_verita_200d", include_str!("../profiles/kodak_verita_200d.yaml")),
|
||||
("kodak_vision3_50d", include_str!("../profiles/kodak_vision3_50d.yaml")),
|
||||
("kodak_vision3_200t", include_str!("../profiles/kodak_vision3_200t.yaml")),
|
||||
("kodak_vision3_250d", include_str!("../profiles/kodak_vision3_250d.yaml")),
|
||||
("kodak_vision3_500t", include_str!("../profiles/kodak_vision3_500t.yaml")),
|
||||
(
|
||||
"kodak_ektachrome_100",
|
||||
include_str!("../profiles/kodak_ektachrome_100.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_ektacolor_edge",
|
||||
include_str!("../profiles/kodak_ektacolor_edge.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_ektar_100",
|
||||
include_str!("../profiles/kodak_ektar_100.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_endura_premier",
|
||||
include_str!("../profiles/kodak_endura_premier.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_gold_200",
|
||||
include_str!("../profiles/kodak_gold_200.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_kodachrome_64",
|
||||
include_str!("../profiles/kodak_kodachrome_64.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_portra_160",
|
||||
include_str!("../profiles/kodak_portra_160.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_portra_400",
|
||||
include_str!("../profiles/kodak_portra_400.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_portra_800",
|
||||
include_str!("../profiles/kodak_portra_800.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_portra_800_push1",
|
||||
include_str!("../profiles/kodak_portra_800_push1.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_portra_800_push2",
|
||||
include_str!("../profiles/kodak_portra_800_push2.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_portra_endura",
|
||||
include_str!("../profiles/kodak_portra_endura.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_supra_endura",
|
||||
include_str!("../profiles/kodak_supra_endura.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_ultra_endura",
|
||||
include_str!("../profiles/kodak_ultra_endura.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_ultramax_400",
|
||||
include_str!("../profiles/kodak_ultramax_400.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_verita_200d",
|
||||
include_str!("../profiles/kodak_verita_200d.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_vision3_50d",
|
||||
include_str!("../profiles/kodak_vision3_50d.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_vision3_200t",
|
||||
include_str!("../profiles/kodak_vision3_200t.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_vision3_250d",
|
||||
include_str!("../profiles/kodak_vision3_250d.yaml"),
|
||||
),
|
||||
(
|
||||
"kodak_vision3_500t",
|
||||
include_str!("../profiles/kodak_vision3_500t.yaml"),
|
||||
),
|
||||
("kodak_trix", include_str!("../profiles/kodak_trix.yaml")),
|
||||
("kodak_doublex", include_str!("../profiles/kodak_doublex.yaml")),
|
||||
(
|
||||
"kodak_doublex",
|
||||
include_str!("../profiles/kodak_doublex.yaml"),
|
||||
),
|
||||
("kodak_2302", include_str!("../profiles/kodak_2302.yaml")),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user