From 20258279dfc38390317c6617f91cc094797ef9ec Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Sat, 26 Aug 2023 02:12:57 +0100 Subject: Rust/unit-wasm-sys: Run build.rs through rustfmt This in preparation for some upcoming changes. Signed-off-by: Andrew Clayton --- src/rust/unit-wasm-sys/build.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit