remove unnecessary reassign in color benchmarks
This commit is contained in:
parent
95f90d3b0d
commit
03f6b2d854
|
@ -15,7 +15,6 @@ func BenchmarkColorToRGBA(b *testing.B) {
|
|||
pixel.RGB(0.8, 0.2, 0.5).Scaled(0.712), // fastest
|
||||
}
|
||||
for _, col := range types {
|
||||
col := col
|
||||
b.Run(fmt.Sprintf("From %T", col), func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
_ = pixel.ToRGBA(col)
|
||||
|
|
Loading…
Reference in New Issue