Pārlūkot izejas kodu

Merge pull request #202 from kbrah/master

Fixes player initialization in the play.rs
Sasha Hilton 7 gadi atpakaļ
vecāks
revīzija
59cff3d4c5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      examples/play.rs

+ 1 - 1
examples/play.rs

@@ -36,7 +36,7 @@ fn main() {
     let session = core.run(Session::connect(session_config, credentials, None, handle))
         .unwrap();
 
-    let player = Player::new(player_config, session.clone(), None, move || (backend)(None));
+    let (player, _)= Player::new(player_config, session.clone(), None, move || (backend)(None));
 
     println!("Playing...");
     core.run(player.load(track, true, 0)).unwrap();