Skip to content

Commit cd9e6a8

Browse files
committed
transpile: simplify setting of TypeConverter::translate_valist
1 parent d9c3b46 commit cd9e6a8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • c2rust-transpile/src/translator

c2rust-transpile/src/translator/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,9 +1535,7 @@ impl<'c> Translation<'c> {
15351535
let comment_context = CommentContext::new(&mut ast_context);
15361536
let mut type_converter = TypeConverter::new();
15371537

1538-
if tcfg.translate_valist {
1539-
type_converter.translate_valist = true
1540-
}
1538+
type_converter.translate_valist = tcfg.translate_valist;
15411539

15421540
let main_file = ast_context
15431541
.find_file_id(main_file)

0 commit comments

Comments
 (0)