diff --git a/geometry_test.go b/geometry_test.go
index f7308c5071e17fce0ba46da55d7f28fa3f801e4a..cda1dc67a3c14d15dc193ca74822f09673fe23ad 100644
--- a/geometry_test.go
+++ b/geometry_test.go
@@ -10,12 +10,12 @@ import (
 	"github.com/stretchr/testify/assert"
 )
 
-type rectTestTransform struct {
-	name string
-	f    func(pixel.Rect) pixel.Rect
-}
-
 func TestRect_Resize(t *testing.T) {
+	type rectTestTransform struct {
+		name string
+		f    func(pixel.Rect) pixel.Rect
+	}
+
 	// rectangles
 	squareAroundOrigin := pixel.R(-10, -10, 10, 10)
 	squareAround2020 := pixel.R(10, 10, 30, 30)