@@ -99,7 +99,7 @@ impl MDBook {
9999 let root = book_root. into ( ) ;
100100
101101 let src_dir = root. join ( & config. book . src ) ;
102- let book = book:: load_book ( & src_dir, & config. build ) ?;
102+ let book = book:: load_book ( src_dir, & config. build ) ?;
103103
104104 let renderers = determine_renderers ( & config) ;
105105 let preprocessors = determine_preprocessors ( & config) ?;
@@ -122,7 +122,7 @@ impl MDBook {
122122 let root = book_root. into ( ) ;
123123
124124 let src_dir = root. join ( & config. book . src ) ;
125- let book = book:: load_book_from_disk ( & summary, & src_dir) ?;
125+ let book = book:: load_book_from_disk ( & summary, src_dir) ?;
126126
127127 let renderers = determine_renderers ( & config) ;
128128 let preprocessors = determine_preprocessors ( & config) ?;
@@ -309,7 +309,7 @@ impl MDBook {
309309 info ! ( "Testing chapter '{}': {:?}" , ch. name, chapter_path) ;
310310
311311 // write preprocessed file to tempdir
312- let path = temp_dir. path ( ) . join ( & chapter_path) ;
312+ let path = temp_dir. path ( ) . join ( chapter_path) ;
313313 let mut tmpf = utils:: fs:: create_file ( & path) ?;
314314 tmpf. write_all ( ch. content . as_bytes ( ) ) ?;
315315
@@ -319,13 +319,13 @@ impl MDBook {
319319 if let Some ( edition) = self . config . rust . edition {
320320 match edition {
321321 RustEdition :: E2015 => {
322- cmd. args ( & [ "--edition" , "2015" ] ) ;
322+ cmd. args ( [ "--edition" , "2015" ] ) ;
323323 }
324324 RustEdition :: E2018 => {
325- cmd. args ( & [ "--edition" , "2018" ] ) ;
325+ cmd. args ( [ "--edition" , "2018" ] ) ;
326326 }
327327 RustEdition :: E2021 => {
328- cmd. args ( & [ "--edition" , "2021" ] ) ;
328+ cmd. args ( [ "--edition" , "2021" ] ) ;
329329 }
330330 }
331331 }
0 commit comments