From b9a4628b47200032e27961a36221331491e228bf Mon Sep 17 00:00:00 2001 From: gwenn Date: Tue, 25 Jun 2019 20:40:28 +0200 Subject: [PATCH] [ci skip] rustftmt --- libsqlite3-sys/build.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index 90e337a..d72381f 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -5,7 +5,10 @@ fn main() { let out_dir = env::var("OUT_DIR").unwrap(); let out_path = Path::new(&out_dir).join("bindgen.rs"); if cfg!(feature = "sqlcipher") { - if cfg!(any(feature = "bundled", all(windows, feature="bundled-windows"))) { + if cfg!(any( + feature = "bundled", + all(windows, feature = "bundled-windows") + )) { println!( "cargo:warning={}", "Builds with bundled SQLCipher are not supported. Searching for SQLCipher to link against. \ @@ -15,18 +18,18 @@ fn main() { } else { // This can't be `cfg!` without always requiring our `mod build_bundled` (and // thus `cc`) - #[cfg(any(feature = "bundled", all(windows, feature="bundled-windows")))] + #[cfg(any(feature = "bundled", all(windows, feature = "bundled-windows")))] { build_bundled::main(&out_dir, &out_path) } - #[cfg(not(any(feature = "bundled", all(windows, feature="bundled-windows"))))] + #[cfg(not(any(feature = "bundled", all(windows, feature = "bundled-windows"))))] { build_linked::main(&out_dir, &out_path) } } } -#[cfg(any(feature = "bundled", all(windows, feature="bundled-windows")))] +#[cfg(any(feature = "bundled", all(windows, feature = "bundled-windows")))] mod build_bundled { use cc; use std::env; @@ -142,7 +145,11 @@ mod build_linked { pub fn main(_out_dir: &str, out_path: &Path) { let header = find_sqlite(); - if cfg!(any(feature = "bundled", all(windows, feature="bundled-windows"))) && !cfg!(feature = "buildtime_bindgen") { + if cfg!(any( + feature = "bundled", + all(windows, feature = "bundled-windows") + )) && !cfg!(feature = "buildtime_bindgen") + { // We can only get here if `bundled` and `sqlcipher` were both // specified (and `builtime_bindgen` was not). In order to keep // `rusqlite` relatively clean we hide the fact that `bundled` can