commit | d9996ab318b4525218363dc26980273d12f35b9d | [log] [tgz] |
---|---|---|
author | Christian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com> | Mon Apr 10 15:22:53 2023 -0500 |
committer | GitHub <noreply@github.com> | Mon Apr 10 15:22:53 2023 -0500 |
tree | 4ce08825d023cf98fdecb6102e98f0e2ebf9e325 | |
parent | d0d3448d8c668b28598032cf40ddb5593d841b2a [diff] |
Fix Clippy lints (#2495)
diff --git a/bindgen-cli/options.rs b/bindgen-cli/options.rs index 407817b..9ab202f 100644 --- a/bindgen-cli/options.rs +++ b/bindgen-cli/options.rs
@@ -1019,7 +1019,7 @@ "--with-derive-custom-union", ), ] { - let name = emit_diagnostics.then(|| name); + let name = emit_diagnostics.then_some(name); for custom_derive in custom_derives { let (regex, derives) = custom_derive .rsplit_once('=')