Skip to content

Commit d9996ab

Browse files
authored
Fix Clippy lints (#2495)
1 parent d0d3448 commit d9996ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen-cli/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ where
10191019
"--with-derive-custom-union",
10201020
),
10211021
] {
1022-
let name = emit_diagnostics.then(|| name);
1022+
let name = emit_diagnostics.then_some(name);
10231023
for custom_derive in custom_derives {
10241024
let (regex, derives) = custom_derive
10251025
.rsplit_once('=')

0 commit comments

Comments
 (0)