fixed whitespace issues
This commit is contained in:
parent
79189561c6
commit
bf7a53994e
12
build.rs
12
build.rs
|
@ -65,15 +65,15 @@ fn main() -> Result<(), Error> {
|
||||||
|
|
||||||
/* Make sysexits bindings depend only on core and use signed integers for
|
/* Make sysexits bindings depend only on core and use signed integers for
|
||||||
* compatibility with Rust’s exit() implementation */
|
* compatibility with Rust’s exit() implementation */
|
||||||
let bindings = Builder::default()
|
let bindings = Builder::default()
|
||||||
.use_core()
|
.use_core()
|
||||||
.default_macro_constant_type(MacroTypeVariation::Signed)
|
.default_macro_constant_type(MacroTypeVariation::Signed)
|
||||||
.header(header)
|
.header(header)
|
||||||
.parse_callbacks(Box::new(CargoCallbacks::new()))
|
.parse_callbacks(Box::new(CargoCallbacks::new()))
|
||||||
.generate()
|
.generate()
|
||||||
.map_err(|e| Error::other(e.to_string()))?;
|
.map_err(|e| Error::other(e.to_string()))?;
|
||||||
|
|
||||||
bindings.write_to_file(PathBuf::from("src/").join("lib.rs"))?;
|
bindings.write_to_file(PathBuf::from("src/").join("lib.rs"))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue