From 32a4da0e94c2c235e9b64ab8bbd3d53a9347a07e Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sat, 3 Oct 2026 16:45:02 -0400 Subject: [PATCH] Import DEFAULT_CONTRAST only where the tests use it The calibration commit imported it at module level, where only the test module reads it; the build warned and clippy's -D warnings refuses that. --- core/dr-pipeline/src/camera_raw.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dr-pipeline/src/camera_raw.rs b/core/dr-pipeline/src/camera_raw.rs index a32a306..0f6c4b3 100644 --- a/core/dr-pipeline/src/camera_raw.rs +++ b/core/dr-pipeline/src/camera_raw.rs @@ -19,7 +19,7 @@ //! shader to it. use crate::ops::camera_profile::{mul, working_prophoto}; -use crate::view::{DEFAULT_CONTRAST, DEFAULT_WHITE, REFERENCE_CONTRAST, SCENE_GREY}; +use crate::view::{DEFAULT_WHITE, REFERENCE_CONTRAST, SCENE_GREY}; /// The input scale for a white point: 1 at the default, so sensor white is /// display white as in the SDK's reference; each stop of `white` above it halves the @@ -100,6 +100,7 @@ fn camera_raw_tone(c: vec3, scale: f32, power: f32, grey: f32) -> vec3 #[cfg(test)] mod tests { use super::*; + use crate::view::DEFAULT_CONTRAST; use dr_types::tone::{evaluate, ACR3_DEFAULT}; fn identity() -> Vec {