Skip to content

Commit 7150b8c

Browse files
committed
Run cargo fmt
1 parent 62f6e22 commit 7150b8c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn frameworks_path() -> Result<String, std::io::Error> {
3232

3333
// Use environment variable if set
3434
if let Ok(path) = std::env::var("COREAUDIO_FRAMEWORKS_PATH") {
35-
return Ok(path)
35+
return Ok(path);
3636
}
3737

3838
if osx_version()
@@ -144,9 +144,7 @@ fn build(frameworks_path: &str) {
144144
builder = builder.clang_args(cflags.split(" "));
145145
}
146146

147-
let bindings = builder
148-
.generate()
149-
.expect("unable to generate bindings");
147+
let bindings = builder.generate().expect("unable to generate bindings");
150148

151149
// Write them to the crate root.
152150
bindings
@@ -156,7 +154,7 @@ fn build(frameworks_path: &str) {
156154

157155
fn main() {
158156
let target = std::env::var("TARGET").unwrap();
159-
if ! (target.contains("apple-darwin") || target.contains("apple-ios")) {
157+
if !(target.contains("apple-darwin") || target.contains("apple-ios")) {
160158
eprintln!("coreaudio-sys requires macos or ios target");
161159
}
162160

@@ -166,4 +164,3 @@ fn main() {
166164
eprintln!("coreaudio-sys could not find frameworks path");
167165
}
168166
}
169-

0 commit comments

Comments
 (0)