remove unnecessary reassign in color benchmarks

This commit is contained in:
faiface 2017-07-02 19:26:43 +02:00
parent 7629b6ef5e
commit 17f735c2d0
1 changed files with 0 additions and 1 deletions

View File

@ -15,7 +15,6 @@ func BenchmarkColorToRGBA(b *testing.B) {
pixel.RGB(0.8, 0.2, 0.5).Scaled(0.712), // fastest pixel.RGB(0.8, 0.2, 0.5).Scaled(0.712), // fastest
} }
for _, col := range types { for _, col := range types {
col := col
b.Run(fmt.Sprintf("From %T", col), func(b *testing.B) { b.Run(fmt.Sprintf("From %T", col), func(b *testing.B) {
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
_ = pixel.ToRGBA(col) _ = pixel.ToRGBA(col)