diff --git a/src/fdo/dbus.rs b/src/fdo/dbus.rs index 9531bc1..4e4cfc4 100644 --- a/src/fdo/dbus.rs +++ b/src/fdo/dbus.rs @@ -26,8 +26,8 @@ pub struct DBus { } impl DBus { - pub const PATH: &str = "/org/freedesktop/DBus"; - pub const INTERFACE: &str = "org.freedesktop.DBus"; + pub const PATH: &'static str = "/org/freedesktop/DBus"; + pub const INTERFACE: &'static str = "org.freedesktop.DBus"; pub fn new(peers: Arc, guid: Arc) -> Self { Self { diff --git a/src/fdo/monitoring.rs b/src/fdo/monitoring.rs index fbbfc4f..98f449f 100644 --- a/src/fdo/monitoring.rs +++ b/src/fdo/monitoring.rs @@ -18,8 +18,8 @@ pub struct Monitoring { } impl Monitoring { - pub const PATH: &str = "/org/freedesktop/DBus"; - pub const INTERFACE: &str = "org.freedesktop.DBus.Monitoring"; + pub const PATH: &'static str = "/org/freedesktop/DBus"; + pub const INTERFACE: &'static str = "org.freedesktop.DBus.Monitoring"; pub fn new(peers: Arc) -> Self { Self {