Reformat.

This commit is contained in:
Nick Lewycky
2019-08-08 13:55:44 -07:00
parent c4d4a6888c
commit 02f1d73f88

View File

@ -19,7 +19,7 @@ const LLVM_SYS_MINOR_VERSION: &str = "0";
// When adding new ones, they should also be added to main() to force a // When adding new ones, they should also be added to main() to force a
// rebuild if they are changed. // rebuild if they are changed.
lazy_static! { lazy_static! {
/// A single path to search for LLVM in (containing bin/llvm-config) /// A single path to search for LLVM in (containing bin/llvm-config)
static ref ENV_LLVM_PREFIX: String = static ref ENV_LLVM_PREFIX: String =
format!("LLVM_SYS_{}_PREFIX", LLVM_SYS_MAJOR_VERSION); format!("LLVM_SYS_{}_PREFIX", LLVM_SYS_MAJOR_VERSION);
@ -179,7 +179,8 @@ fn is_compatible_llvm(llvm_version: &Version) -> bool {
return false; return false;
} }
let strict = env::var_os(&*ENV_STRICT_VERSIONING).is_some() || cfg!(feature = "strict-versioning"); let strict =
env::var_os(&*ENV_STRICT_VERSIONING).is_some() || cfg!(feature = "strict-versioning");
if strict { if strict {
llvm_version.major == CRATE_VERSION.major && llvm_version.minor == CRATE_VERSION.minor llvm_version.major == CRATE_VERSION.major && llvm_version.minor == CRATE_VERSION.minor
} else { } else {