11use crate :: {
2+ LoadContextOptions , LoadRequestOptions , PlayContext ,
23 context_resolver:: { ContextAction , ContextResolver , ResolveContext } ,
34 core:: {
5+ Error , Session , SpotifyId ,
46 authentication:: Credentials ,
57 dealer:: {
68 manager:: { BoxedStream , BoxedStreamResult , Reply , RequestReply } ,
79 protocol:: { Command , FallbackWrapper , Message , Request } ,
810 } ,
911 session:: UserAttributes ,
10- Error , Session , SpotifyId ,
1112 } ,
1213 model:: { LoadRequest , PlayingTrack , SpircPlayStatus } ,
1314 playback:: {
@@ -28,15 +29,14 @@ use crate::{
2829 provider:: IsProvider ,
2930 { ConnectConfig , ConnectState } ,
3031 } ,
31- LoadContextOptions , LoadRequestOptions , PlayContext ,
3232} ;
3333use futures_util:: StreamExt ;
3434use librespot_protocol:: context_page:: ContextPage ;
3535use protobuf:: MessageField ;
3636use std:: {
3737 future:: Future ,
38- sync:: atomic:: { AtomicUsize , Ordering } ,
3938 sync:: Arc ,
39+ sync:: atomic:: { AtomicUsize , Ordering } ,
4040 time:: { Duration , SystemTime , UNIX_EPOCH } ,
4141} ;
4242use thiserror:: Error ;
@@ -951,7 +951,8 @@ impl SpircTask {
951951 {
952952 debug ! (
953953 "ignoring context update for <{:?}>, because it isn't the current context <{}>" ,
954- update_context. context. uri, self . connect_state. context_uri( )
954+ update_context. context. uri,
955+ self . connect_state. context_uri( )
955956 )
956957 } else {
957958 self . context_resolver . add ( ResolveContext :: from_context (
@@ -1615,7 +1616,9 @@ impl SpircTask {
16151616 let uri = String :: from_utf8 ( uri) ?;
16161617
16171618 if self . connect_state . context_uri ( ) != & uri {
1618- debug ! ( "ignoring playlist modification update for playlist <{uri}>, because it isn't the current context" ) ;
1619+ debug ! (
1620+ "ignoring playlist modification update for playlist <{uri}>, because it isn't the current context"
1621+ ) ;
16191622 return Ok ( ( ) ) ;
16201623 }
16211624
0 commit comments