From c9d69e45d15211cb1f848839266a5a2eedb19186 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Fri, 17 Nov 2023 15:15:51 +0000 Subject: [PATCH] Simplify --- fastly/basictypes_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastly/basictypes_helper.go b/fastly/basictypes_helper.go index 9b1020c39..f4931dd8e 100644 --- a/fastly/basictypes_helper.go +++ b/fastly/basictypes_helper.go @@ -1,7 +1,7 @@ package fastly // ToPointer converts T to *T. -func ToPointer[T string | int | uint | uint8 | bool | CacheSettingAction | Compatibool | ERLAction | ERLLogger | ERLWindowSize | RequestSettingAction | RequestSettingXFF | S3AccessControlList | S3Redundancy | S3ServerSideEncryption](v T) *T { +func ToPointer[T ~string | ~int | uint | uint8 | ~bool](v T) *T { return &v }