diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-18 12:36:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 12:36:13 -0600 |
commit | 1a8a2ac1c325487be455b434749c0b246f27e242 (patch) | |
tree | d81d41e63625c2e602fca4f97722fc5d9e8bfee2 /libbindgen/src/ir/function.rs | |
parent | c48f835f9e03fdd30d35c7cae63f04cdaa2d9549 (diff) | |
parent | 3f0f86810b855d20dfc39655f336ba814d169281 (diff) |
Auto merge of #207 - Natim:130-cursor-args-return-vector, r=emilio
clang::Cursor::args should return an Option<Vec<Cursor>>
Attempt to fix #130
Diffstat (limited to 'libbindgen/src/ir/function.rs')
-rw-r--r-- | libbindgen/src/ir/function.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbindgen/src/ir/function.rs b/libbindgen/src/ir/function.rs index eacb6c0e..60bd1e5b 100644 --- a/libbindgen/src/ir/function.rs +++ b/libbindgen/src/ir/function.rs @@ -150,7 +150,7 @@ impl FunctionSig { CXCursor_CXXMethod => { // For CXCursor_FunctionDecl, cursor.args() is the reliable way // to get parameter names and types. - cursor.args() + cursor.args().expect("It cannot be None because we are in a method/function") .iter() .map(|arg| { let arg_ty = arg.cur_type(); |