@@ -9,7 +9,6 @@ mod module;
99
1010use module:: { Module , ModuleType } ;
1111
12-
1312/// This struct stores options based on the command-line arguments,
1413/// and is passed to various functions across the program.
1514pub struct Options {
@@ -71,16 +70,20 @@ fn main() {
7170 assert ! ( !include_statements. is_empty( ) ) ;
7271
7372 // Generate the populated assembly module
74- let populated = Module :: new ( ModuleType :: Assembly , title , & options )
75- . includes ( include_statements) ;
73+ let populated =
74+ Module :: new ( ModuleType :: Assembly , title , & options ) . includes ( include_statements) ;
7675
7776 write_module ( & populated, & options) ;
7877 }
7978}
8079
8180/// Process all titles that have been specified on the command line and that belong to a single
8281/// module type.
83- fn process_module_type ( titles : clap:: Values , module_type_str : & str , options : & Options ) -> Vec < Module > {
82+ fn process_module_type (
83+ titles : clap:: Values ,
84+ module_type_str : & str ,
85+ options : & Options ,
86+ ) -> Vec < Module > {
8487 let mut modules_from_type = Vec :: new ( ) ;
8588
8689 for title in titles {
@@ -103,7 +106,6 @@ fn process_module_type(titles: clap::Values, module_type_str: &str, options: &Op
103106 modules_from_type
104107}
105108
106-
107109/// Write the generated module content to the path specified in `options` with the set file name.
108110// fn write_module(file_name: &str, content: &str, options: &Options) {
109111fn write_module ( module : & Module , options : & Options ) {
@@ -156,4 +158,3 @@ fn write_module(module: &Module, options: &Options) {
156158 }
157159 }
158160}
159-
0 commit comments