paint: two stroke tests check the result the stroke now returns

apply_color_replacement and apply_mixer_stroke return a Result since #11070.
Two tests that landed on main after that PR's CI ran still dropped it, so
clippy's unused-must-use lint fails the gate on main.
This commit is contained in:
Dylan M. Taylor committed 2026-11-11 22:31:50 +00:00
1 parent f1b5e7d727
commit f33bdad496
2 files changed
+2 -2

No files matched your search

@@ -20,7 +20,7 @@ fn click_with(s: &mut Surface, wet: f32, mix: f32, flow: f32) {
let mut st = MixerState::default();
st.load([0.0, 0.0, 0.0, 1.0]);
let m = MixerSettings { wet, load: 0.75, mix, flow, ..Default::default() };
apply_mixer_stroke(s, None, &stroke, &m, &mut st, None, false);
apply_mixer_stroke(s, None, &stroke, &m, &mut st, None, false).unwrap();
}
fn alpha(s: &Surface, x: i32, y: i32) -> i32 {
+1 -1
View File
@@ -40,7 +40,7 @@ fn click_with(anti_alias: bool, flow: f32, hardness: f32) -> Surface {
color: [0.0, 0.0, 1.0, 1.0],
..Default::default()
};
apply_color_replacement(&mut s, &stroke, &rs, None, false);
apply_color_replacement(&mut s, &stroke, &rs, None, false).unwrap();
s
}