We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1003f commit 1485cd0Copy full SHA for 1485cd0
bindgen-cli/options.rs
@@ -1110,11 +1110,8 @@ where
1110
{
1111
(macro_definition.as_str(), Vec::new())
1112
} else {
1113
- let Some((left_side, arguments)) =
1114
- macro_definition.split_once('(')
1115
- else {
1116
- panic!("Invalid function macro definition: No '(' for ')' at end found");
1117
- };
+ let (left_side, arguments) =
+ macro_definition.split_once('(').expect("Invalid function macro definition: No '(' for ')' at end found");
1118
let arguments = &arguments[..arguments.len() - 1];
1119
if arguments.trim().is_empty() {
1120
// The empty argument list case `()`.
0 commit comments