Skip to content

Commit 3acc982

Browse files
committed
Clippy
1 parent 3e7c269 commit 3acc982

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

boring-sys/build/main.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,10 @@ fn get_boringssl_cmake_config(config: &Config) -> cmake::Config {
308308
boringssl_cmake.cflag(&cflag);
309309
}
310310

311-
"windows" => {
312-
if config.host.contains("windows") {
313-
// BoringSSL's CMakeLists.txt isn't set up for cross-compiling using Visual Studio.
314-
// Disable assembly support so that it at least builds.
315-
boringssl_cmake.define("OPENSSL_NO_ASM", "YES");
316-
}
311+
"windows" if config.host.contains("windows") => {
312+
// BoringSSL's CMakeLists.txt isn't set up for cross-compiling using Visual Studio.
313+
// Disable assembly support so that it at least builds.
314+
boringssl_cmake.define("OPENSSL_NO_ASM", "YES");
317315
}
318316

319317
"linux" => match &*config.target_arch {
@@ -607,7 +605,7 @@ fn install_artifacts(
607605
Ok(dir) if dir.read_dir().is_ok_and(|mut d| d.next().is_none()) => dir,
608606
dir => {
609607
let path = dir.as_deref().unwrap_or(install_dir).display();
610-
return Err(format!("{path} must be an empty dir",).into());
608+
return Err(format!("{path} must be an empty dir").into());
611609
}
612610
};
613611
let bssl_build_dir = build_boringssl_or_get_prebuilt(config);
@@ -636,7 +634,7 @@ fn main() -> ExitCode {
636634
eprintln!("boring-sys failed: {e}");
637635
println!(
638636
"cargo::error={}",
639-
e.to_string().trim_ascii().replace("\n", "\ncargo::error=")
637+
e.to_string().trim_ascii().replace('\n', "\ncargo::error=")
640638
);
641639
ExitCode::FAILURE
642640
} else {

0 commit comments

Comments
 (0)