@@ -36,7 +36,6 @@ const CONCEPT_TEMPLATE: &str = include_str!("../templates/concept.adoc");
3636const PROCEDURE_TEMPLATE : & str = include_str ! ( "../templates/procedure.adoc" ) ;
3737const REFERENCE_TEMPLATE : & str = include_str ! ( "../templates/reference.adoc" ) ;
3838
39-
4039impl Input {
4140 pub fn new ( mod_type : ModuleType , title : & str , options : & Options ) -> Input {
4241 let title = String :: from ( title) ;
@@ -168,7 +167,10 @@ impl Input {
168167 } ;
169168
170169 // Define the strings that will be replaced in the template
171- let replacements = [ ( "${module_title}" , & self . title ) , ( "${module_id}" , & self . id ( ) ) ] ;
170+ let replacements = [
171+ ( "${module_title}" , & self . title ) ,
172+ ( "${module_id}" , & self . id ( ) ) ,
173+ ] ;
172174
173175 // Perform substitutions in the template
174176 // TODO: Create a separate function to perform a replacement
@@ -209,7 +211,6 @@ impl Input {
209211 }
210212}
211213
212-
213214impl From < Input > for Module {
214215 fn from ( input : Input ) -> Self {
215216 // TODO: I suspect that these `clone` calls aren't really necessary, but I don't know Rust
@@ -234,7 +235,6 @@ impl From<Input> for Module {
234235 }
235236}
236237
237-
238238impl Module {
239239 /// The constructor for the Module struct
240240 pub fn new ( mod_type : ModuleType , title : & str , options : & Options ) -> Module {
0 commit comments