From b4d4b64ddbff8f26044da961bdcba54265811cab Mon Sep 17 00:00:00 2001 From: David Mann Date: Tue, 24 Nov 2026 12:24:51 +0100 Subject: [PATCH] color-ui: pass PaintChip's style to layout without a needless borrow, so next's Workspace lint passes on clippy 1.100 Co-Authored-By: Claude Opus 5.5 --- crates/color-ui/src/ui/paint_chip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/color-ui/src/ui/paint_chip.rs b/crates/color-ui/src/ui/paint_chip.rs index 8026cac9d..28de7cc7b 100644 --- a/crates/color-ui/src/ui/paint_chip.rs +++ b/crates/color-ui/src/ui/paint_chip.rs @@ -783,7 +783,7 @@ impl Component for PaintChip<'_> { } fn paint(&mut self, ui: &mut PaintUi<'_>, cx: &Cx<'_, Self>) { - let (well, mark) = self.layout(cx.rect, &cx.style, cx.flow.is_rtl()); + let (well, mark) = self.layout(cx.rect, cx.style, cx.flow.is_rtl()); if self.popup_mark == PopupMark::Menu { let mut arrow = DisclosureGlyph::dropdown_of(cx.env.get()); arrow.color = Some(cx.style.arrow_color);