mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 00:57:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user