From 0175ec4014802f3fbc7eedf7696117a620db2717 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 19 Oct 2020 01:39:55 +0200 Subject: [PATCH] Fix conversion warning in tests introduced by Go 1.15 --- bees/notificationbee/notificationbee_unix.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bees/notificationbee/notificationbee_unix.go b/bees/notificationbee/notificationbee_unix.go index 552f5fb0..839f7162 100644 --- a/bees/notificationbee/notificationbee_unix.go +++ b/bees/notificationbee/notificationbee_unix.go @@ -25,7 +25,11 @@ // Package notificationbee is a Bee that can trigger desktop notifications. package notificationbee -import dbus "github.com/guelfey/go.dbus" +import ( + "fmt" + + dbus "github.com/guelfey/go.dbus" +) // Run executes the Bee's event loop. func (mod *NotificationBee) execAction(text string, urgency uint32) { @@ -40,6 +44,6 @@ func (mod *NotificationBee) execAction(text string, urgency uint32) { map[string]dbus.Variant{"urgency": dbus.MakeVariant(urgency)}, int32(5000)) if call.Err != nil { - mod.Logln("(" + string(urgency) + ") Failed to print message: " + text) + mod.Logln("(" + fmt.Sprint(urgency) + ") Failed to print message: " + text) } }