Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bazhenov committed Feb 23, 2024
1 parent fdb9766 commit 4d556ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tango-bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,12 @@ impl<G: Generator> BenchmarkMatrix<G> {

impl<G> IntoBenchmarks for BenchmarkMatrix<G> {
fn into_benchmarks(self) -> Vec<Box<dyn MeasureTarget>> {
assert!(!self.functions.is_empty(), "No functions was given");
assert!(!self.functions.is_empty(), "No functions were given");
self.functions
}
}

/// Converts the implementing type into a vector of `MeasureTarget`.
pub trait IntoBenchmarks {
fn into_benchmarks(self) -> Vec<Box<dyn MeasureTarget>>;
}
Expand Down

0 comments on commit 4d556ad

Please sign in to comment.