File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ use std::io;
20
20
use std:: io:: Write ;
21
21
use std:: io:: ErrorKind ;
22
22
use std:: process:: Command ;
23
+ use std:: collections:: HashMap ;
23
24
24
25
use { theme, parse, utils} ;
25
26
use renderer:: { Renderer , HtmlHandlebars } ;
26
27
27
28
28
- pub struct MDBook {
29
+ pub struct MDBook < ' a > {
29
30
root : PathBuf ,
30
31
dest : PathBuf ,
31
32
src : PathBuf ,
@@ -36,12 +37,13 @@ pub struct MDBook {
36
37
pub description : String ,
37
38
38
39
pub content : Vec < BookItem > ,
40
+ books : HashMap < & ' a str , Book > ,
39
41
renderer : Box < Renderer > ,
40
42
41
43
livereload : Option < String > ,
42
44
}
43
45
44
- impl MDBook {
46
+ impl < ' a > MDBook < ' a > {
45
47
/// Create a new `MDBook` struct with root directory `root`
46
48
///
47
49
/// Default directory paths:
@@ -69,6 +71,7 @@ impl MDBook {
69
71
description : String :: new ( ) ,
70
72
71
73
content : vec ! [ ] ,
74
+ books : HashMap :: new ( ) ,
72
75
renderer : Box :: new ( HtmlHandlebars :: new ( ) ) ,
73
76
74
77
livereload : None ,
You can’t perform that action at this time.
0 commit comments