@@ -96,12 +96,10 @@ pub fn find(name: Option<&str>) -> Result<DnsSdServiceBuilder, Error> {
9696 match BACKENDS . iter ( ) . find ( |( id, _) | name == id) {
9797 Some ( ( _id, Some ( launch_svc) ) ) => Ok ( * launch_svc) ,
9898 Some ( ( _id, None ) ) => Err ( Error :: unavailable ( format ! (
99- "librespot built without '{}' support" ,
100- name
99+ "librespot built without '{name}' support"
101100 ) ) ) ,
102101 None => Err ( Error :: not_found ( format ! (
103- "unknown zeroconf backend '{}'" ,
104- name
102+ "unknown zeroconf backend '{name}'"
105103 ) ) ) ,
106104 }
107105 } else {
@@ -286,14 +284,14 @@ async fn avahi_task(
286284 //
287285 // EntryGroup has been withdrawn at this point already!
288286 log:: error!( "zeroconf collision for name '{}'" , & name) ;
289- return Err ( zbus:: Error :: Failure ( format!( "zeroconf collision for name: {}" , name ) ) . into( ) ) ;
287+ return Err ( zbus:: Error :: Failure ( format!( "zeroconf collision for name: {name}" ) ) . into( ) ) ;
290288 }
291289 EntryGroupState :: Failure => {
292290 // TODO: Back off/treat as fatal?
293291 // EntryGroup has been withdrawn at this point already!
294292 // There seems to be no code in Avahi that actually sets this state.
295293 log:: error!( "zeroconf failure: {}" , error) ;
296- return Err ( zbus:: Error :: Failure ( format!( "zeroconf failure: {}" , error ) ) . into( ) ) ;
294+ return Err ( zbus:: Error :: Failure ( format!( "zeroconf failure: {error}" ) ) . into( ) ) ;
297295 }
298296 }
299297 }
0 commit comments