Fix a clippy nit

This commit is contained in:
Emil Ernerfeldt 2020-09-06 06:58:40 +02:00
parent 6b30e21f4e
commit c26b3069e0

View file

@ -389,7 +389,7 @@ impl<'a> Widget for Checkbox<'a> {
});
}
let text_color = text_color.unwrap_or(visuals.text_color());
let text_color = text_color.unwrap_or_else(|| visuals.text_color());
ui.painter()
.galley(text_cursor, galley, text_style, text_color);
response