Skip to content

Commit

Permalink
Set the correct field in Divan::max_time()
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper authored and nvzqz committed Feb 17, 2024
1 parent 5ece287 commit 5ad9a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/divan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ impl Divan {
/// This option is equivalent to the `--max-time` CLI argument.
#[inline]
pub fn max_time(mut self, time: Duration) -> Self {
self.bench_options.min_time = Some(time);
self.bench_options.max_time = Some(time);
self
}

Expand Down

0 comments on commit 5ad9a14

Please sign in to comment.