From e8bc9fcc210dd7318af5325c72cd6ada6b115f29 Mon Sep 17 00:00:00 2001 From: gwenn Date: Thu, 27 Apr 2017 18:42:10 +0200 Subject: [PATCH] TypeChooser has been renamed to ParseCallbacks --- libsqlite3-sys/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index f864224..fc05ddb 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -139,7 +139,7 @@ mod build { mod bindings { extern crate bindgen; - use self::bindgen::chooser::{TypeChooser, IntKind}; + use self::bindgen::callbacks::{ParseCallbacks, IntKind}; use super::HeaderLocation; use std::env; @@ -150,7 +150,7 @@ mod build { #[derive(Debug)] struct SqliteTypeChooser; - impl TypeChooser for SqliteTypeChooser { + impl ParseCallbacks for SqliteTypeChooser { fn int_macro(&self, _name: &str, value: i64) -> Option { if value >= i32::min_value() as i64 && value <= i32::max_value() as i64 { Some(IntKind::I32) @@ -166,7 +166,7 @@ mod build { let mut output = Vec::new(); bindgen::builder() .header(header.clone()) - .type_chooser(Box::new(SqliteTypeChooser)) + .parse_callbacks(Box::new(SqliteTypeChooser)) .generate() .expect(&format!("could not run bindgen on header {}", header)) .write(Box::new(&mut output))