Skip to content

A fast, helpful, and open-source document parser

more format

Logan Markewich476e7279b4cb
diff --git a/crates/pdfium-sys/build.rs b/crates/pdfium-sys/build.rs
index 1ebd50c..00059c6 100644
--- a/crates/pdfium-sys/build.rs
+++ b/crates/pdfium-sys/build.rs
@@ -187,7 +187,11 @@ fn copy_dylib_to_target_deps(lib_dir: &Path) {
// OUT_DIR is typically target/<profile>/build/<pkg>-<hash>/out
// We want target/<profile>/deps which is 3 levels up then into deps
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
- if let Some(build_dir) = out_dir.parent().and_then(|p| p.parent()).and_then(|p| p.parent()) {
+ if let Some(build_dir) = out_dir
+ .parent()
+ .and_then(|p| p.parent())
+ .and_then(|p| p.parent())
+ {
let deps_dir = build_dir.join("deps");
if deps_dir.is_dir() {
let dst = deps_dir.join(dylib_name);