Merge pull request #3336 from davidmann4/fix/next-paint-chip-needless-borrow

color-ui: drop a needless borrow in PaintChip::paint that fails next's lint
This commit is contained in:
David Mann
2026-11-24 13:24:04 +01:00
committed by GitHub
+1 -1
View File
@@ -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);