From 44aeecf74ef219767f7fefd30647f4e70254ee09 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Sat, 18 Sep 2021 19:11:38 +0200 Subject: [PATCH 1/2] Remove useless runtime.KeepAlive --- bytesconv.go | 1 - 1 file changed, 1 deletion(-) diff --git a/bytesconv.go b/bytesconv.go index 374092a30f..c1b91f2c60 100644 --- a/bytesconv.go +++ b/bytesconv.go @@ -348,7 +348,6 @@ func s2b(s string) (b []byte) { bh.Data = sh.Data bh.Cap = sh.Len bh.Len = sh.Len - runtime.KeepAlive(&s) return b } From 577e908e44125ad933228a508572a910c9f8b217 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Sat, 18 Sep 2021 19:14:18 +0200 Subject: [PATCH 2/2] Update bytesconv.go --- bytesconv.go | 1 - 1 file changed, 1 deletion(-) diff --git a/bytesconv.go b/bytesconv.go index c1b91f2c60..81f8e5b167 100644 --- a/bytesconv.go +++ b/bytesconv.go @@ -11,7 +11,6 @@ import ( "math" "net" "reflect" - "runtime" "strings" "sync" "time"