diff options
author | Tom Forbes <tom@tomforb.es> | 2020-11-29 16:05:49 +0000 |
---|---|---|
committer | Tom Forbes <tom@tomforb.es> | 2020-11-29 16:05:49 +0000 |
commit | ecf05a8657667d378f5eeb9ad14fbb6919e76853 (patch) | |
tree | 98c09d4e5a59b44696a3b571921d7a8b09f19860 | |
parent | 216673a5c6312ec2923a779da40b262f48a5c638 (diff) |
Formatting
-rw-r--r-- | src/main.rs | 6 | ||||
-rw-r--r-- | src/plot_data.rs | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 714ad5f..7d59d05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -325,7 +325,11 @@ fn main() -> Result<()> { let chart = Chart::new(datasets) .block(Block::default().borders(Borders::NONE)) - .x_axis(Axis::default().style(Style::default().fg(Color::Gray)).bounds(app.x_axis_bounds())) + .x_axis( + Axis::default() + .style(Style::default().fg(Color::Gray)) + .bounds(app.x_axis_bounds()), + ) .y_axis( Axis::default() .style(Style::default().fg(Color::Gray)) diff --git a/src/plot_data.rs b/src/plot_data.rs index 7c02a6a..845a59b 100644 --- a/src/plot_data.rs +++ b/src/plot_data.rs @@ -80,6 +80,6 @@ impl<'a> Into<Dataset<'a>> for &'a PlotData { .style(self.style) .graph_type(GraphType::Line) .data(slice) - // .x_axis_bounds([self.window_min, self.window_max]) + // .x_axis_bounds([self.window_min, self.window_max]) } } |