Skip to content

Commit

Permalink
Fix cargo fmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
etfrogers committed Feb 9, 2025
1 parent 13c18b1 commit 05f0634
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 6 additions & 4 deletions gnuplot/src/axes2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@ impl Axes2D
YDelta: IntoIterator<Item = TYDelta>,
>(
&'l mut self, x: X, y: Y, x_delta: XDelta, y_delta: YDelta, options: &[PlotOption<&str>],
) -> &'l mut Self {
) -> &'l mut Self
{
self.common.elems.push(PlotElement::new_plot4(
BoxXYError,
x,
Expand Down Expand Up @@ -866,8 +867,10 @@ impl Axes2D
TYHigh: DataType,
YHigh: IntoIterator<Item = TYHigh>,
>(
&'l mut self, x: X, y: Y, x_low: XLow, x_high: XHigh,y_low: YLow, y_high: YHigh,options: &[PlotOption<&str>],
) -> &'l mut Self {
&'l mut self, x: X, y: Y, x_low: XLow, x_high: XHigh,y_low: YLow, y_high: YHigh,
options: &[PlotOption<&str>],
) -> &'l mut Self
{
self.common.elems.push(PlotElement::new_plot6(
BoxXYError,
x,
Expand All @@ -881,7 +884,6 @@ impl Axes2D
self
}


/// Draws an image from a rectangular array of data by connecting the individual datapoints with polygons.
///
/// #Arguments:
Expand Down
12 changes: 10 additions & 2 deletions gnuplot/src/axes_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,12 @@ impl PlotType
{
matches!(
*self,
Lines | LinesPoints | XErrorLines | Boxes | YErrorLines | BoxAndWhisker | BoxXYError | Polygons
Lines
| LinesPoints
| XErrorLines
| Boxes | YErrorLines
| BoxAndWhisker
| BoxXYError | Polygons
)
}

Expand All @@ -790,7 +795,10 @@ impl PlotType

fn is_fill(&self) -> bool
{
matches!(*self, Boxes | FillBetween | BoxAndWhisker | BoxXYError | Polygons)
matches!(
*self,
Boxes | FillBetween | BoxAndWhisker | BoxXYError | Polygons
)
}
}

Expand Down

0 comments on commit 05f0634

Please sign in to comment.