Update to latest release of bindgen
Note that all of the enum definitions changed (again?), and now they are flattened into the 'bindings' namespace. This breaks the API in a way that is relatively easy to fix, albeit annoying. Attempts to change the enum generation using default_enum_style() resulted in endless compiler errors. cargo test passes
This commit is contained in:
@ -49,7 +49,7 @@ use libc::ssize_t;
|
||||
pub fn magick_wand_genesis() {
|
||||
unsafe {
|
||||
match bindings::IsMagickWandInstantiated() {
|
||||
bindings::MagickBooleanType::MagickTrue => (),
|
||||
bindings::MagickBooleanType_MagickTrue => (),
|
||||
_ => bindings::MagickWandGenesis()
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,7 @@ pub fn magick_wand_genesis() {
|
||||
pub fn magick_wand_terminus() {
|
||||
unsafe {
|
||||
match bindings::IsMagickWandInstantiated() {
|
||||
bindings::MagickBooleanType::MagickTrue => bindings::MagickWandTerminus(),
|
||||
bindings::MagickBooleanType_MagickTrue => bindings::MagickWandTerminus(),
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user