v0.14.6
Don't use matches!() to support older rustc versions. Fixes #574
This commit is contained in:
parent
1e46e53ae2
commit
e4da7d39a6
4
CHANGES
4
CHANGES
@ -1,3 +1,7 @@
|
||||
## 0.14.6
|
||||
|
||||
* Fixed the builds with older versions of rustc.
|
||||
|
||||
## 0.14.5
|
||||
|
||||
* Add support to specify line ending style (#568)
|
||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -32,7 +32,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cbindgen"
|
||||
version = "0.14.5"
|
||||
version = "0.14.6"
|
||||
dependencies = [
|
||||
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cbindgen"
|
||||
version = "0.14.5"
|
||||
version = "0.14.6"
|
||||
authors = ["Jeff Muizelaar <jmuizelaar@mozilla.com>",
|
||||
"Kartikaya Gupta <kats@mozilla.com>",
|
||||
"Ryan Hunt <rhunt@eqrion.net>"]
|
||||
|
@ -210,8 +210,9 @@ impl Function {
|
||||
}
|
||||
|
||||
for arg in &mut self.args {
|
||||
if !matches!(arg.ty, Type::Ptr { .. }) {
|
||||
continue;
|
||||
match arg.ty {
|
||||
Type::Ptr { .. } => {},
|
||||
_ => continue,
|
||||
}
|
||||
let name = match arg.name {
|
||||
Some(ref name) => name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user