util/set: make Clone a method (#10044)

Updates #cleanup

Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
This commit is contained in:
Chris Palmer
2023-11-01 10:20:38 -07:00
committed by GitHub
parent 5289cfce33
commit 3a9f5c02bf
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ func SetOf[T comparable](slice []T) Set[T] {
}
// Clone returns a new set cloned from the elements in s.
func Clone[T comparable](s Set[T]) Set[T] {
func (s Set[T]) Clone() Set[T] {
return maps.Clone(s)
}