Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed Aug 4, 2021
1 parent 7a1198c commit a94a85c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions zfs-core-sys/build.rs
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -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" => {
Expand Down Expand Up @@ -111,6 +115,6 @@ fn main() {
"freebsd" => {
println!("cargo:rustc-link-lib=dylib:-as-needed=zutil");
}
_ => {},
_ => {}
}
}

0 comments on commit a94a85c

Please sign in to comment.