Skip to content

Commit 9d4782b

Browse files
authored
Fix renamed missing unit argument (#60)
This change makes sure renamed preserves the unit property of the column that's being renamed.
1 parent 45ee2f5 commit 9d4782b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Benchmark/BenchmarkColumn.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public struct BenchmarkColumn: Hashable {
7272
/// Create a copy of this column with a different name.
7373
public func renamed(_ newName: String) -> BenchmarkColumn {
7474
return BenchmarkColumn(
75-
name: newName, value: value, alignment: alignment, formatter: formatter)
75+
name: newName, value: value, unit: unit, alignment: alignment, formatter: formatter)
7676
}
7777

7878
/// Registry that represents a mapping from known column

0 commit comments

Comments
 (0)