Skip to content

Commit 01896e9

Browse files
committed
* apply cargo fmt
1 parent bb8fa8b commit 01896e9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

windows_build.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,15 @@ impl DevelPack {
234234

235235
/// Returns the path of the PHP library containing symbols for linking.
236236
pub fn php_lib(&self, is_debug: bool) -> PathBuf {
237-
238237
let php_lib_path = std::env::var("PHP_LIB")
239238
.map(PathBuf::from)
240239
.unwrap_or_else(|_| self.0.join("lib"));
241240

242241
if !php_lib_path.exists() {
243-
panic!("Error: Specified PHP library path '{}' does not exist.", php_lib_path.display());
242+
panic!(
243+
"Error: Specified PHP library path '{}' does not exist.",
244+
php_lib_path.display()
245+
);
244246
}
245247

246248
let candidates = if is_debug {
@@ -265,7 +267,10 @@ For example: set PHP_LIB=C:\php-sdk\php-dev\vc16\x64\php-8.3.13-src\x64\Debug_TS
265267
php_lib_path.display()
266268
)
267269
} else {
268-
format!("Error: No suitable PHP library found in '{}'.", php_lib_path.display())
270+
format!(
271+
"Error: No suitable PHP library found in '{}'.",
272+
php_lib_path.display()
273+
)
269274
}
270275
))
271276
}

0 commit comments

Comments
 (0)