aboutsummaryrefslogtreecommitdiff
path: root/b2s_old.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2023-08-26 12:49:17 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-26 12:49:17 +0200
commit0e99e64ee836adc5a3c4b35a0d8148900c2e7898 (patch)
tree74ed52ccb6d24a75f6e25d0f52b62e3050bef387 /b2s_old.go
parentfix round2_32, split round2 tests because they depend on sizeof int at compil... (diff)
downloadfasthttp-0e99e64ee836adc5a3c4b35a0d8148900c2e7898.tar.gz
fasthttp-0e99e64ee836adc5a3c4b35a0d8148900c2e7898.tar.bz2
fasthttp-0e99e64ee836adc5a3c4b35a0d8148900c2e7898.zip
Update golangci-lint and gosec (#1609)v1.49.0
Diffstat (limited to 'b2s_old.go')
-rw-r--r--b2s_old.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/b2s_old.go b/b2s_old.go
index f1d3228..6b9f799 100644
--- a/b2s_old.go
+++ b/b2s_old.go
@@ -11,6 +11,5 @@ import "unsafe"
// Note it may break if string and/or slice header will change
// in the future go versions.
func b2s(b []byte) string {
- /* #nosec G103 */
return *(*string)(unsafe.Pointer(&b))
}