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:
committed by
JohannesProgrammiert
parent
2d013fcfad
commit
2c0fdf16df
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user