File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ impl BookConfig {
23
23
author : String :: new ( ) ,
24
24
description : String :: new ( ) ,
25
25
root : root. to_owned ( ) ,
26
- dest : PathBuf :: from ( "book" ) ,
27
- src : PathBuf :: from ( "src" ) ,
26
+ dest : root . join ( "book" ) ,
27
+ src : root . join ( "src" ) ,
28
28
indent_spaces : 4 , // indentation used for SUMMARY.md
29
29
multilingual : false ,
30
30
}
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ impl MDBook {
43
43
44
44
MDBook {
45
45
root : root. to_owned ( ) ,
46
- dest : PathBuf :: from ( "book" ) ,
47
- src : PathBuf :: from ( "src" ) ,
46
+ dest : root . join ( "book" ) ,
47
+ src : root . join ( "src" ) ,
48
48
49
49
title : String :: new ( ) ,
50
50
author : String :: new ( ) ,
@@ -151,7 +151,8 @@ impl MDBook {
151
151
debug ! ( "[*]: item: {:?}" , item) ;
152
152
match * item {
153
153
BookItem :: Spacer => continue ,
154
- BookItem :: Chapter ( _, ref ch) | BookItem :: Affix ( ref ch) => {
154
+ BookItem :: Chapter ( _, ref ch) |
155
+ BookItem :: Affix ( ref ch) => {
155
156
if ch. path != PathBuf :: new ( ) {
156
157
let path = self . src . join ( & ch. path ) ;
157
158
@@ -279,8 +280,8 @@ impl MDBook {
279
280
pub fn read_config ( mut self ) -> Self {
280
281
281
282
let config = BookConfig :: new ( & self . root )
282
- . read_config ( & self . root )
283
- . to_owned ( ) ;
283
+ . read_config ( & self . root )
284
+ . to_owned ( ) ;
284
285
285
286
self . title = config. title ;
286
287
self . description = config. description ;
You can’t perform that action at this time.
0 commit comments