File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ fn frameworks_path() -> Result<String, std::io::Error> {
32
32
33
33
// Use environment variable if set
34
34
if let Ok ( path) = std:: env:: var ( "COREAUDIO_FRAMEWORKS_PATH" ) {
35
- return Ok ( path)
35
+ return Ok ( path) ;
36
36
}
37
37
38
38
if osx_version ( )
@@ -144,9 +144,7 @@ fn build(frameworks_path: &str) {
144
144
builder = builder. clang_args ( cflags. split ( " " ) ) ;
145
145
}
146
146
147
- let bindings = builder
148
- . generate ( )
149
- . expect ( "unable to generate bindings" ) ;
147
+ let bindings = builder. generate ( ) . expect ( "unable to generate bindings" ) ;
150
148
151
149
// Write them to the crate root.
152
150
bindings
@@ -156,7 +154,7 @@ fn build(frameworks_path: &str) {
156
154
157
155
fn main ( ) {
158
156
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" ) ) {
160
158
eprintln ! ( "coreaudio-sys requires macos or ios target" ) ;
161
159
}
162
160
@@ -166,4 +164,3 @@ fn main() {
166
164
eprintln ! ( "coreaudio-sys could not find frameworks path" ) ;
167
165
}
168
166
}
169
-
You can’t perform that action at this time.
0 commit comments