RustAudio / coreaudio-sys

Raw bindings to the OSX CoreAudio framework generated by bindgen (see coreaudio-rs for a more rust-esque wrapper).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using rustfmt 2.0 for the project? Bonus "stdin:" at beginning of generated coreaudio.rs

dmilith opened this issue · comments

I tried building ggez project and build failed cause os weird issue:

error: expected one of `!` or `::`, found `:`
 --> /Projects/ggez/target/release/build/coreaudio-sys-3bc6b4c7a394d9da/out/coreaudio.rs:3:6
  |
3 | stdin:
  |      ^ expected one of `!` or `::`

error: aborting due to previous error

It's what I had after trying rustfmt 2.0 without --quiet option.

Removing that line from generated file solves build trouble.