1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-28 05:55:21 -04:00

fix(lint): drop unused constraints import

This commit is contained in:
purian23
2026-06-27 22:35:33 -04:00
parent a8c15fcde9
commit e791337ae9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,6 @@ require (
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
go.etcd.io/bbolt v1.4.3
go4.org/mem v0.0.0-20240501181205-ae6ca9944745
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f
golang.org/x/image v0.39.0
tailscale.com v1.96.5
)
@@ -64,6 +63,7 @@ require (
github.com/yeqown/reedsolomon v1.0.0 // indirect
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.zx2c4.com/wireguard/windows v1.0.1 // indirect
+2 -2
View File
@@ -1,8 +1,8 @@
package utils
import "golang.org/x/exp/constraints"
import "cmp"
func Clamp[T constraints.Ordered](val, min, max T) T {
func Clamp[T cmp.Ordered](val, min, max T) T {
if val < min {
return min
}