From 17f735c2d047e455e815ca2ee0b6966b4f846de2 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Sun, 2 Jul 2017 19:26:43 +0200
Subject: [PATCH] remove unnecessary reassign in color benchmarks

---
 color_test.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/color_test.go b/color_test.go
index c89679e..31514d7 100644
--- a/color_test.go
+++ b/color_test.go
@@ -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)
-- 
GitLab