1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

plot: resolve clippy warning

This commit is contained in:
Johannes Schiffer
2022-11-18 17:49:24 +01:00
committed by JohannesProgrammiert
parent 2d013fcfad
commit 2c0fdf16df

View File

@@ -187,7 +187,7 @@ impl<const AXIS: usize> Widget for AxisWidget<AXIS> {
let galley = text.into_galley(ui, Some(false), f32::INFINITY, TextStyle::Body);
let text_color = visuals
.override_text_color
.unwrap_or(ui.visuals().text_color());
.unwrap_or_else(|| ui.visuals().text_color());
let angle: f32 = match AXIS {
X_AXIS => 0.0,
Y_AXIS => -std::f32::consts::PI * 0.5,