@@ -45,13 +45,13 @@ impl fmt::Display for Error {
4545 15 => write ! ( f, "Authentication failed: extra verification required" ) ,
4646 16 => write ! ( f, "Authentication failed: invalid app key" ) ,
4747 17 => write ! ( f, "Authentication failed: application banned" ) ,
48- _ => write ! ( f, "Authentication failed with error code {}" , code ) ,
48+ _ => write ! ( f, "Authentication failed with error code {code}" ) ,
4949 } ,
5050 Self :: ConnectionFailed => write ! ( f, "Failed to connect to any access point" ) ,
5151 Self :: ResamplingError ( code) => {
52- write ! ( f, "Resampling failed with error code {}" , code )
52+ write ! ( f, "Resampling failed with error code {code}" )
5353 }
54- Self :: ConfigError ( msg) => write ! ( f, "Configuration error: {}" , msg ) ,
54+ Self :: ConfigError ( msg) => write ! ( f, "Configuration error: {msg}" ) ,
5555 Self :: JsonError ( err)
5656 | Self :: AudioFetchingError ( err)
5757 | Self :: AudioDecodingError ( err)
@@ -60,9 +60,9 @@ impl fmt::Display for Error {
6060 | Self :: AudioProbeError ( err) => err. fmt ( f) ,
6161 Self :: IoError ( err) => err. fmt ( f) ,
6262 Self :: SendError => write ! ( f, "Failed to send into a channel" ) ,
63- Self :: RecvTimeoutError ( err) => write ! ( f, "Channel receive timeout: {}" , err ) ,
63+ Self :: RecvTimeoutError ( err) => write ! ( f, "Channel receive timeout: {err}" ) ,
6464 Self :: JoinError => write ! ( f, "Failed to join thread" ) ,
65- Self :: OAuthError ( msg) => write ! ( f, "OAuth error: {}" , msg ) ,
65+ Self :: OAuthError ( msg) => write ! ( f, "OAuth error: {msg}" ) ,
6666 }
6767 }
6868}
0 commit comments