Skip to content

Commit

Permalink
fix: building with notify only (#658)
Browse files Browse the repository at this point in the history
While (#562) implemented conditional compilation for notify without
streaming the used function seems to be deprecated with &track out of
scope. Replacing it with Self::notify_new_track(&track, &path)?; fixes
the issue.
  • Loading branch information
dibbel26 authored Jan 9, 2025
1 parent d1c20f7 commit 2d2a16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify_player/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ impl Client {

#[cfg(all(feature = "notify", not(feature = "streaming")))]
if configs.app_config.enable_notify {
Self::notify_new_track(&track, &path)?;
Self::notify_new_playback(&curr_item, &path)?;
}

Ok(())
Expand Down

0 comments on commit 2d2a16a

Please sign in to comment.