From e14f24b2a308c22528cb3f872d780070dc1e8396 Mon Sep 17 00:00:00 2001 From: JohannesProgrammiert Date: Sat, 27 May 2023 12:28:21 +0200 Subject: [PATCH] plot-axes: Resolve ./scripts/check.sh warnings --- crates/egui/src/widgets/plot/axis.rs | 2 +- crates/egui/src/widgets/plot/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/egui/src/widgets/plot/axis.rs b/crates/egui/src/widgets/plot/axis.rs index 56b856921..f71096e8f 100644 --- a/crates/egui/src/widgets/plot/axis.rs +++ b/crates/egui/src/widgets/plot/axis.rs @@ -51,7 +51,7 @@ pub struct AxisHints { const LINE_HEIGHT: f32 = 12.0; impl Default for AxisHints { - /// Initializes a default axis configuration for the specified [`Axis`]. + /// Initializes a default axis configuration for the specified axis. /// /// `label` is 'x' or 'y' /// `formatter` is default float to string formatter diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index 1283cde01..1d39578e3 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -570,7 +570,7 @@ impl Plot { /// If no x-axis has been specified so far a new one will be created. pub fn x_axis_label(mut self, label: impl Into) -> Self { if self.x_axes.is_empty() { - self.x_axes.push(XAxisHints::default().label(label)) + self.x_axes.push(XAxisHints::default().label(label)); } else { self.x_axes[0].label = label.into(); } @@ -581,7 +581,7 @@ impl Plot { /// If no y-axis has been specified so far a new one will be created. pub fn y_axis_label(mut self, label: impl Into) -> Self { if self.y_axes.is_empty() { - self.y_axes.push(YAxisHints::default().label(label)) + self.y_axes.push(YAxisHints::default().label(label)); } else { self.y_axes[0].label = label.into(); }