From f33bdad4967d138d9cfb792014e62eccdc846358 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Wed, 11 Nov 2026 22:31:50 +0000 Subject: [PATCH] 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. --- crates/paint/src/mixer_click_empty_layer_tests.rs | 2 +- crates/paint/src/replace_anti_alias_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/paint/src/mixer_click_empty_layer_tests.rs b/crates/paint/src/mixer_click_empty_layer_tests.rs index 3cde70eef2..6c0ec73cbf 100644 --- a/crates/paint/src/mixer_click_empty_layer_tests.rs +++ b/crates/paint/src/mixer_click_empty_layer_tests.rs @@ -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 { diff --git a/crates/paint/src/replace_anti_alias_tests.rs b/crates/paint/src/replace_anti_alias_tests.rs index 92bf846f8f..75c0f8d8e9 100644 --- a/crates/paint/src/replace_anti_alias_tests.rs +++ b/crates/paint/src/replace_anti_alias_tests.rs @@ -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 }