Commit 18d011fc authored by RazrFalcon's avatar RazrFalcon Committed by Ryan Hunt
Browse files

Fixed example building.

Fix:

```rust
 --> build.rs:8:24
  |
8 |     cbindgen::generate(crate_dir)
  |                        ^^^^^^^^^ expected &str, found struct `std::string::String`
  |
  = note: expected type `&str`
             found type `std::string::String`
  = help: try with `&crate_dir`
```
parent c36a6ff6
......@@ -36,7 +36,7 @@ use std::env;
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
cbindgen::generate(crate_dir)
cbindgen::generate(&crate_dir)
.unwrap()
.write_to_file("bindings.h");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment