Skip to content

Commit

Permalink
v0.14.6
Browse files Browse the repository at this point in the history
Don't use matches!() to support older rustc versions.

Fixes #574
  • Loading branch information
emilio committed Sep 21, 2020
1 parent 1e46e53 commit e4da7d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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>"]
Expand Down
5 changes: 3 additions & 2 deletions src/bindgen/ir/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e4da7d3

Please sign in to comment.