@@ -269,15 +269,15 @@ fn get_ext_dir() -> AResult<PathBuf> {
269269 . output ( )
270270 . context ( "Failed to call PHP" ) ?;
271271 if !cmd. status . success ( ) {
272- bail ! ( "Failed to call PHP: {:?}" , cmd ) ;
272+ bail ! ( "Failed to call PHP: {cmd :?}" ) ;
273273 }
274274 let stdout = String :: from_utf8_lossy ( & cmd. stdout ) ;
275275 let ext_dir = PathBuf :: from ( stdout. rsplit ( '\n' ) . next ( ) . unwrap ( ) ) ;
276276 if !ext_dir. is_dir ( ) {
277277 if ext_dir. exists ( ) {
278278 bail ! (
279- "Extension directory returned from PHP is not a valid directory: {:? }" ,
280- ext_dir
279+ "Extension directory returned from PHP is not a valid directory: {}" ,
280+ ext_dir. display ( )
281281 ) ;
282282 }
283283
@@ -299,14 +299,14 @@ fn get_php_ini() -> AResult<PathBuf> {
299299 . output ( )
300300 . context ( "Failed to call PHP" ) ?;
301301 if !cmd. status . success ( ) {
302- bail ! ( "Failed to call PHP: {:?}" , cmd ) ;
302+ bail ! ( "Failed to call PHP: {cmd :?}" ) ;
303303 }
304304 let stdout = String :: from_utf8_lossy ( & cmd. stdout ) ;
305305 let ini = PathBuf :: from ( stdout. rsplit ( '\n' ) . next ( ) . unwrap ( ) ) ;
306306 if !ini. is_file ( ) {
307307 bail ! (
308- "php.ini does not exist or is not a file at the given path: {:? }" ,
309- ini
308+ "php.ini does not exist or is not a file at the given path: {}" ,
309+ ini. display ( )
310310 ) ;
311311 }
312312 Ok ( ini)
@@ -416,7 +416,7 @@ impl Stubs {
416416 } ) ?;
417417
418418 if !cli_version. matches ( & ext_version) {
419- bail ! ( "Extension was compiled with an incompatible version of `ext-php-rs` - Extension: {}, CLI: {}" , ext_version , cli_version ) ;
419+ bail ! ( "Extension was compiled with an incompatible version of `ext-php-rs` - Extension: {ext_version }, CLI: {cli_version}" ) ;
420420 }
421421
422422 let stubs = result
0 commit comments