mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Clippy fix
This commit is contained in:
@@ -855,10 +855,11 @@ impl PlotItem for Points {
|
|||||||
|
|
||||||
let default_stroke = Stroke::new(stroke_size, *color);
|
let default_stroke = Stroke::new(stroke_size, *color);
|
||||||
let mut stem_stroke = default_stroke;
|
let mut stem_stroke = default_stroke;
|
||||||
let stroke = (!filled)
|
let (fill, stroke) = if *filled {
|
||||||
.then_some(default_stroke)
|
(*color, Stroke::NONE)
|
||||||
.unwrap_or_else(Stroke::none);
|
} else {
|
||||||
let fill = filled.then(|| *color).unwrap_or_default();
|
(Color32::TRANSPARENT, default_stroke)
|
||||||
|
};
|
||||||
|
|
||||||
if *highlight {
|
if *highlight {
|
||||||
radius *= 2f32.sqrt();
|
radius *= 2f32.sqrt();
|
||||||
|
|||||||
Reference in New Issue
Block a user