Skip to content

Commit 93667ea

Browse files
committed
Make BenchmarkSet Copy
1 parent 6100a40 commit 93667ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

database/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,8 @@ impl fmt::Display for BenchmarkJobStatus {
10931093
}
10941094
}
10951095

1096-
#[derive(Debug, Clone, PartialEq)]
1097-
pub struct BenchmarkSet(pub u32);
1096+
#[derive(Debug, Copy, Clone, PartialEq)]
1097+
pub struct BenchmarkSet(u32);
10981098

10991099
/// A single unit of work generated from a benchmark request. Split by profiles
11001100
/// and backends
@@ -1136,8 +1136,8 @@ impl BenchmarkJob {
11361136
&self.request_tag
11371137
}
11381138

1139-
pub fn benchmark_set(&self) -> &BenchmarkSet {
1140-
&self.benchmark_set
1139+
pub fn benchmark_set(&self) -> BenchmarkSet {
1140+
self.benchmark_set
11411141
}
11421142

11431143
pub fn collector_name(&self) -> Option<&str> {

0 commit comments

Comments
 (0)