Skip to content

Commit

Permalink
gui: Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eras committed May 23, 2021
1 parent 50f6c6d commit 0ce3a45
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,7 @@ impl Stage {
match *plot_mode {
PlotMode::NoView => (),
_ if !click_info.click_sampler.is_in_auto_hold()
&& click_info.click_sampler.is_in_auto() =>
{
()
}
&& click_info.click_sampler.is_in_auto() => {}
_ => {
let use_captured = (click_info.click_sampler.is_in_hold()
| click_info.click_sampler.is_in_auto_hold())
Expand Down Expand Up @@ -281,12 +278,11 @@ impl Stage {
.height(ui.available_size().y)
.include_x(min_x)
.include_x(max_x);
let plot = if !*autoscale_y {
if !*autoscale_y {
plot.include_y(-1.0).include_y(1.0)
} else {
plot
};
plot
}
});
}
}
Expand Down

0 comments on commit 0ce3a45

Please sign in to comment.