Skip to content

Commit

Permalink
Merge pull request #36 from zeenix/const-lifetimes
Browse files Browse the repository at this point in the history
🚨 Explicit lifetimes for constant string literals
  • Loading branch information
zeenix authored Jan 30, 2024
2 parents fb8b5ca + c756be5 commit 7c6343f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fdo/dbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Peers>, guid: Arc<Guid>) -> Self {
Self {
Expand Down
4 changes: 2 additions & 2 deletions src/fdo/monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Peers>) -> Self {
Self {
Expand Down

0 comments on commit 7c6343f

Please sign in to comment.