Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeiml authored and slondr committed Mar 11, 2022
1 parent c22c9e9 commit 97c52fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbus_mpris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ fn insert_metadata(m: &mut HashMap<String, Variant<Box<dyn RefArg>>>, track: Ful
.external_urls
.iter()
.next()
.map_or("", |(_, v)| &v)
.map_or("", |(_, v)| v)
.to_string(),
)),
);
Expand Down
2 changes: 2 additions & 0 deletions src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ pub(crate) struct MainLoopState {
pub(crate) running_event_program: Option<Child>,
pub(crate) shell: String,
pub(crate) device_type: DeviceType,
// Command line option should still be available without dbus_mpris feature
#[allow(dead_code)]
pub(crate) use_mpris: bool,
#[cfg(feature = "dbus_mpris")]
pub(crate) mpris_event_tx: Option<UnboundedSender<PlayerEvent>>,
Expand Down

0 comments on commit 97c52fe

Please # to comment.