Skip to content

Commit

Permalink
Make Daemon feature imply streaming feature
Browse files Browse the repository at this point in the history
Remove runtime error, favouring compile time verification
  • Loading branch information
LucasFA committed Feb 24, 2024
1 parent a6e09ec commit cbbc4bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion spotify_player/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ image = ["viuer", "dep:image"]
sixel = ["image", "viuer/sixel"]
notify = ["notify-rust"]
clipboard = ["copypasta"]
daemon = ["daemonize"]
daemon = ["daemonize", "streaming"]

default = ["rodio-backend", "media-control", "clipboard"]

Expand Down
4 changes: 0 additions & 4 deletions spotify_player/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@ fn main() -> Result<()> {
eprintln!("Running the application as a daemon on windows/macos with `media-control` feature enabled is not supported!");
std::process::exit(1);
}
if cfg!(not(feature = "streaming")) {
eprintln!("`streaming` feature must be enabled to run the application as a daemon!");
std::process::exit(1);
}

tracing::info!("Starting the application as a daemon...");
let daemonize = daemonize::Daemonize::new();
Expand Down

0 comments on commit cbbc4bd

Please sign in to comment.