@@ -62,16 +62,17 @@ fn main() {
6262 if let Some ( title) = cmdline_args. value_of ( "include-in" ) {
6363 // Gather all include statements for the other modules
6464 // TODO: Figure out if this can be done without calling .to_owned on all the Strings
65- let includes : Vec < String > = non_populated
65+ let include_statements : Vec < String > = non_populated
6666 . iter ( )
6767 . map ( |module| module. include_statement . to_owned ( ) )
6868 . collect ( ) ;
6969
70- // The includes should never be empty thanks to the required group in clap
71- assert ! ( !includes . is_empty( ) ) ;
70+ // The include_statements should never be empty thanks to the required group in clap
71+ assert ! ( !include_statements . is_empty( ) ) ;
7272
7373 // Generate the populated assembly module
74- let populated = Module :: new ( ModuleType :: Assembly , title, Some ( & includes) , & options) ;
74+ let populated = Module :: new ( ModuleType :: Assembly , title, & options)
75+ . includes ( include_statements) ;
7576
7677 write_module ( & populated, & options) ;
7778 }
@@ -94,7 +95,7 @@ fn process_module_type(titles: clap::Values, module_type_str: &str, options: &Op
9495 _ => unimplemented ! ( ) ,
9596 } ;
9697
97- let module = Module :: new ( module_type, title, None , & options) ;
98+ let module = Module :: new ( module_type, title, & options) ;
9899
99100 modules_from_type. push ( module) ;
100101 }
0 commit comments