From be83ad838ca5192ac79184341819f6c06e82e3bc Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Tue, 24 Sep 2024 19:37:50 +0900 Subject: [PATCH] dbus: assert fmt.Stringer instead of helper.Args on argument seal Signed-off-by: Ophestra Umiker --- dbus/dbus.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus.go b/dbus/dbus.go index 22cd35a..9c99a70 100644 --- a/dbus/dbus.go +++ b/dbus/dbus.go @@ -2,6 +2,7 @@ package dbus import ( "errors" + "fmt" "io" "os" "os/exec" @@ -43,7 +44,7 @@ func (p *Proxy) String() string { } if p.seal != nil { - return p.seal.(helper.Args).String() + return p.seal.(fmt.Stringer).String() } return "(unsealed dbus proxy)"