Merge pull request #466 from gwenn/bindgen

Upgrade to bindgen 0.47
This commit is contained in:
gwenn 2019-01-26 11:10:20 +01:00 committed by GitHub
commit 073aff493d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ preupdate_hook = []
session = ["preupdate_hook"] session = ["preupdate_hook"]
[build-dependencies] [build-dependencies]
bindgen = { version = "0.46", optional = true } bindgen = { version = "0.47", optional = true }
pkg-config = { version = "0.3", optional = true } pkg-config = { version = "0.3", optional = true }
cc = { version = "1.0", optional = true } cc = { version = "1.0", optional = true }

View File

@ -999,7 +999,7 @@ mod test {
// dynamic slice: // dynamic slice:
db.query_row( db.query_row(
"SELECT ?1, ?2, ?3", "SELECT ?1, ?2, ?3",
&[&1u8 as &ToSql, &"one", &Some("one")], &[&1u8 as &dyn ToSql, &"one", &Some("one")],
|row| row.get::<_, u8>(0), |row| row.get::<_, u8>(0),
) )
.unwrap(); .unwrap();