Skip to content

Commit

Permalink
remove unnecessary reassign in color benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
faiface committed Jul 2, 2017
1 parent 95f90d3 commit 03f6b2d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion color_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03f6b2d

Please sign in to comment.