Explorar o código

Merge pull request #202 from kbrah/master

Fixes player initialization in the play.rs
Sasha Hilton %!s(int64=7) %!d(string=hai) anos
pai
achega
59cff3d4c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();