Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Oct 19, 2023
1 parent 65a103f commit 610d3a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl MetricsPollerThread {
};

let record_file = if let Some(path) = &options.record {
Some(File::from(std::fs::File::create(&path).with_context(
Some(File::from(std::fs::File::create(path).with_context(
|| format!("failed to record file {}", path.display()),
)?))
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl App {
if (self.replay_cursor_time + Duration::from_secs(1))
< self.poller.replay_last_time()
{
self.replay_cursor_time = self.replay_cursor_time + Duration::from_secs(1);
self.replay_cursor_time += Duration::from_secs(1);
self.render_replay_ui_if_need()?;
}
}
Expand Down

0 comments on commit 610d3a1

Please sign in to comment.