cargo fmt

This commit is contained in:
Thom Chiovoloni 2020-12-06 02:04:58 -08:00
parent 5bf5c54447
commit 79a61ca46d

View File

@ -50,16 +50,13 @@ fn main() -> io::Result<()> {
// Avoid the if-supported flag functions for easy cases, as they're // Avoid the if-supported flag functions for easy cases, as they're
// kinda costly. // kinda costly.
if compiler.is_like_gnu() || compiler.is_like_clang() { if compiler.is_like_gnu() || compiler.is_like_clang() {
build build.flag("-fno-exceptions").flag("-fno-rtti");
.flag("-fno-exceptions")
.flag("-fno-rtti");
} }
// TODO: disable linking C++ stdlib? Not sure if it's allowed. // TODO: disable linking C++ stdlib? Not sure if it's allowed.
build build
.warnings(false) .warnings(false)
.file("include_all_imgui.cpp") .file("include_all_imgui.cpp")
.compile("libcimgui.a") .compile("libcimgui.a");
;
} }
Ok(()) Ok(())
} }