Run cargo fmt

This commit is contained in:
Florian Dehau 2019-07-16 08:03:02 +02:00
parent 3726761549
commit abd552fde6

View file

@ -11,27 +11,23 @@ fn zero_axes_ok() {
terminal terminal
.draw(|mut f| { .draw(|mut f| {
Chart::default() Chart::default()
.block(Block::default().title("Plot").borders(Borders::ALL)) .block(Block::default().title("Plot").borders(Borders::ALL))
.x_axis( .x_axis(Axis::default().bounds([0.0, 0.0]).labels(&["0.0", "1.0"]))
Axis::default() .y_axis(Axis::default().bounds([0.0, 1.0]).labels(&["0.0", "1.0"]))
.bounds([ 0.0, 0.0, ]) .datasets(&[Dataset::default()
.labels(&["0.0", "1.0"]) .marker(Marker::Braille)
) .style(Style::default().fg(Color::Magenta))
.y_axis( .data(&[(0.0, 0.0)])])
Axis::default() .render(
.bounds([ 0.0, 1.0, ]) &mut f,
.labels(&["0.0", "1.0"]) Rect {
) x: 0,
.datasets(&[Dataset::default() y: 0,
.marker(Marker::Braille) width: 100,
.style(Style::default().fg(Color::Magenta)) height: 100,
.data(&[(0.0, 0.0)])]) },
.render(&mut f, Rect { );
x: 0, })
y: 0, .unwrap();
width: 100,
height: 100,
});
}).unwrap();
} }