mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
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:
8
vendor/github.com/godbus/dbus/v5/decoder.go
generated
vendored
8
vendor/github.com/godbus/dbus/v5/decoder.go
generated
vendored
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user