We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54d1ad7 commit 10a0ac7Copy full SHA for 10a0ac7
bindgen-cli/options.rs
@@ -1122,11 +1122,8 @@ where
1122
{
1123
(macro_definition.as_str(), Vec::new())
1124
} else {
1125
- let Some((left_side, arguments)) =
1126
- macro_definition.split_once('(')
1127
- else {
1128
- panic!("Invalid function macro definition: No '(' for ')' at end found");
1129
- };
+ let (left_side, arguments) =
+ macro_definition.split_once('(').expect("Invalid function macro definition: No '(' for ')' at end found");
1130
let arguments = &arguments[..arguments.len() - 1];
1131
if arguments.trim().is_empty() {
1132
// The empty argument list case `()`.
0 commit comments