1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 02:09:26 +02:00

Remove unused dependencies and fix feature flags

This commit is contained in:
johannesd3 2021-02-21 19:38:49 +01:00 committed by Johannesd3
parent 59c556635e
commit 18179e73ec
6 changed files with 35 additions and 196 deletions

View file

@ -1,4 +1,4 @@
use futures::{future::FusedFuture, FutureExt, StreamExt};
use futures_util::{future, FutureExt, StreamExt};
use librespot_playback::player::PlayerEvent;
use log::{error, info, warn};
use sha1::{Digest, Sha1};
@ -468,8 +468,7 @@ async fn main() {
let mut player_event_channel: Option<UnboundedReceiver<PlayerEvent>> = None;
let mut auto_connect_times: Vec<Instant> = vec![];
let mut discovery = None;
let mut connecting: Pin<Box<dyn FusedFuture<Output = _>>> =
Box::pin(futures::future::pending());
let mut connecting: Pin<Box<dyn future::FusedFuture<Output = _>>> = Box::pin(future::pending());
if setupp.enable_discovery {
let config = setupp.connect_config.clone();