summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody P Schafer <dev@codyps.com>2021-08-04 15:57:49 -0400
committerCody P Schafer <dev@codyps.com>2021-08-04 15:57:49 -0400
commita94a85c91b4475096d07fcf85b974dac1290f436 (patch)
treefd8181b4bd58747cedafa689eff081ee9edd4578
parent7a1198cf3882e3d63671b5588210122ac809926a (diff)
downloadrust-libzfs-a94a85c91b4475096d07fcf85b974dac1290f436.zip
cargo fmt
-rw-r--r--zfs-core-sys/build.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/zfs-core-sys/build.rs b/zfs-core-sys/build.rs
index 99aa29c..97b4de7 100644
--- a/zfs-core-sys/build.rs
+++ b/zfs-core-sys/build.rs
@@ -1,4 +1,8 @@
-use std::{ffi::OsStr, path::{Path, PathBuf}, str::FromStr};
+use std::{
+ ffi::OsStr,
+ path::{Path, PathBuf},
+ str::FromStr,
+};
fn var(s: &str) -> Result<String, std::env::VarError> {
println!("cargo:rerun-if-env-changed={}", s);
@@ -72,7 +76,7 @@ fn main() {
//
// Right now, if the link method is _not_ supplied, we tweak PKG_CONFIG_PATH so things
// will automatically work in the common case (with openzfs on osx 2.01 at least)
- //
+ //
// This will almost certainly behave poorly in the case of cross compilation, where
// users should probably specify a `LIBZFS_CORE_LOOKUP_WITH` explicitly.
"macos" => {
@@ -111,6 +115,6 @@ fn main() {
"freebsd" => {
println!("cargo:rustc-link-lib=dylib:-as-needed=zutil");
}
- _ => {},
+ _ => {}
}
}