@@ -187,7 +187,7 @@ impl StreamInner {
187187 fn play ( & mut self ) -> Result < ( ) , PlayStreamError > {
188188 if !self . playing {
189189 if let Err ( e) = self . audio_unit . start ( ) {
190- let description = format ! ( "{e}" ) ;
190+ let description = e . to_string ( ) ;
191191 let err = BackendSpecificError { description } ;
192192 return Err ( err. into ( ) ) ;
193193 }
@@ -199,7 +199,7 @@ impl StreamInner {
199199 fn pause ( & mut self ) -> Result < ( ) , PauseStreamError > {
200200 if self . playing {
201201 if let Err ( e) = self . audio_unit . stop ( ) {
202- let description = format ! ( "{e}" ) ;
202+ let description = e . to_string ( ) ;
203203 let err = BackendSpecificError { description } ;
204204 return Err ( err. into ( ) ) ;
205205 }
@@ -288,7 +288,7 @@ impl DuplexStreamInner {
288288 fn play ( & mut self ) -> Result < ( ) , PlayStreamError > {
289289 if !self . playing {
290290 if let Err ( e) = self . audio_unit . start ( ) {
291- let description = format ! ( "{e}" ) ;
291+ let description = e . to_string ( ) ;
292292 let err = BackendSpecificError { description } ;
293293 return Err ( err. into ( ) ) ;
294294 }
@@ -300,7 +300,7 @@ impl DuplexStreamInner {
300300 fn pause ( & mut self ) -> Result < ( ) , PauseStreamError > {
301301 if self . playing {
302302 if let Err ( e) = self . audio_unit . stop ( ) {
303- let description = format ! ( "{e}" ) ;
303+ let description = e . to_string ( ) ;
304304 let err = BackendSpecificError { description } ;
305305 return Err ( err. into ( ) ) ;
306306 }
0 commit comments