Sean1708 / rusty-cheddar

A Rust crate for automatically generating C header files from Rust source file.
http://sean1708.github.io/rusty-cheddar/
191 stars 25 forks source link

examples/pointer.rs contains invalid Rust code #34

Open kinetiknz opened 8 years ago

kinetiknz commented 8 years ago

pointer.rs wraps Data in a newtype to make it opaque to C, but datalib_data_f64_append attempts to access the fields of (*data) as if it was of type Data. It needs to access the wrapper value via .0 to be valid Rust.

Sean1708 commented 8 years ago

Ah thanks, I'll fix that soon.