fix(deps): update github.com/godbus/dbus/v5 digest to a817f3c

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-10-01 01:31:16 +00:00
committed by GitHub
parent 1f5ec677d8
commit 8ef495594c
8 changed files with 13 additions and 21 deletions

View File

@@ -370,12 +370,6 @@ func (c *stringConverter) String(b []byte) string {
}
// toString converts a byte slice to a string without allocating.
// Starting from Go 1.20 you should use unsafe.String.
func toString(b []byte) string {
var s string
h := (*reflect.StringHeader)(unsafe.Pointer(&s))
h.Data = uintptr(unsafe.Pointer(&b[0]))
h.Len = len(b)
return s
return unsafe.String(&b[0], len(b))
}