@@ -63,7 +63,7 @@ fn main() -> Result<()> {
6363
6464 // TODO: Maybe attach these strings to the ModuleType enum somehow
6565 // For each module type, see if it occurs on the command line and process it
66- for module_type_str in & [ "assembly" , "concept" , "procedure" , "reference" ] {
66+ for module_type_str in [ "assembly" , "concept" , "procedure" , "reference" , "snippet "] {
6767 // Check if the given module type occurs on the command line
6868 if let Some ( titles_iterator) = cmdline_args. values_of ( module_type_str) {
6969 let mut modules = process_module_type ( titles_iterator, module_type_str, & options) ;
@@ -85,8 +85,8 @@ fn main() -> Result<()> {
8585 // Gather all include statements for the other modules
8686 // TODO: Figure out if this can be done without calling .to_owned on all the Strings
8787 let include_statements: Vec < String > = non_populated
88- . iter ( )
89- . map ( |module| module. include_statement . clone ( ) )
88+ . into_iter ( )
89+ . map ( |module| module. include_statement )
9090 . collect ( ) ;
9191
9292 // The include_statements should never be empty thanks to the required group in clap
@@ -122,6 +122,7 @@ fn process_module_type(
122122 "concept" => ModuleType :: Concept ,
123123 "procedure" => ModuleType :: Procedure ,
124124 "reference" => ModuleType :: Reference ,
125+ "snippet" => ModuleType :: Snippet ,
125126 _ => unimplemented ! ( ) ,
126127 } ;
127128
0 commit comments