Skip to content

Commit ab92a6b

Browse files
committed
rustfmt
1 parent 9b624cc commit ab92a6b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

projectm-sys/build.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use crate::build_bindgen::bindgen;
66

77
fn main() {
88
// Get the path to the projectM source code
9-
let projectm_path =
10-
PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("libprojectM");
9+
let projectm_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("libprojectM");
1110

1211
// Check if the libprojectM source code exists
1312
if !projectm_path.exists() {
@@ -20,7 +19,11 @@ fn main() {
2019
}
2120

2221
// Determine if the 'playlist' feature is enabled
23-
let enable_playlist = if cfg!(feature = "playlist") { "ON" } else { "OFF" };
22+
let enable_playlist = if cfg!(feature = "playlist") {
23+
"ON"
24+
} else {
25+
"OFF"
26+
};
2427

2528
let dst;
2629

@@ -58,10 +61,7 @@ fn main() {
5861
// Configure and build libprojectM using CMake for Windows
5962
dst = cmake::Config::new(&projectm_path)
6063
.generator("Visual Studio 17 2022")
61-
.define(
62-
"CMAKE_TOOLCHAIN_FILE",
63-
&vcpkg_toolchain,
64-
)
64+
.define("CMAKE_TOOLCHAIN_FILE", &vcpkg_toolchain)
6565
.define("VCPKG_TARGET_TRIPLET", "x64-windows-static-md")
6666
.define(
6767
"CMAKE_MSVC_RUNTIME_LIBRARY",
@@ -131,4 +131,4 @@ fn main() {
131131

132132
// Run bindgen to generate Rust bindings
133133
bindgen();
134-
}
134+
}

0 commit comments

Comments
 (0)