summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-08-26 02:12:57 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-08-26 02:12:57 +0100
commit20258279dfc38390317c6617f91cc094797ef9ec (patch)
tree8aa974b93de9edff69ed8753b9c0f383a9a0a048
parent6f70b1fe44582f195654bb41c41d43f2eb78a975 (diff)
downloadunit-wasm-20258279dfc38390317c6617f91cc094797ef9ec.tar.gz
unit-wasm-20258279dfc38390317c6617f91cc094797ef9ec.tar.bz2
Rust/unit-wasm-sys: Run build.rs through rustfmt
This in preparation for some upcoming changes. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--src/rust/unit-wasm-sys/build.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rust/unit-wasm-sys/build.rs b/src/rust/unit-wasm-sys/build.rs
index bd2ebd5..cf6daf5 100644
--- a/src/rust/unit-wasm-sys/build.rs
+++ b/src/rust/unit-wasm-sys/build.rs
@@ -31,7 +31,8 @@ fn main() {
}
fn generate_bindings() {
- let wasi_sysroot = "--sysroot=".to_owned() + &env::var("WASI_SYSROOT").unwrap();
+ let wasi_sysroot =
+ "--sysroot=".to_owned() + &env::var("WASI_SYSROOT").unwrap();
let bindings = bindgen::Builder::default()
// The input header file.
.header("libunit-wasm/include/unit/unit-wasm.h")
@@ -42,8 +43,8 @@ fn generate_bindings() {
.generate()
.expect("Unable to generate bindings");
- let out_dir_env =
- env::var("OUT_DIR").expect("The required environment variable OUT_DIR was not set");
+ let out_dir_env = env::var("OUT_DIR")
+ .expect("The required environment variable OUT_DIR was not set");
let out_path = PathBuf::from(out_dir_env);
bindings