@@ -251,7 +251,7 @@ impl MDBook {
251
251
/// Run the entire build process for a particular [`Renderer`].
252
252
pub fn execute_build_process ( & self , renderer : & dyn Renderer ) -> Result < ( ) > {
253
253
let preprocessed_books = match & self . book {
254
- LoadedBook :: Localized ( ref books) => {
254
+ LoadedBook :: Localized ( books) => {
255
255
let mut new_books = HashMap :: new ( ) ;
256
256
257
257
for ( language_ident, book) in books. 0 . iter ( ) {
@@ -270,7 +270,7 @@ impl MDBook {
270
270
271
271
LoadedBook :: Localized ( LocalizedBooks ( new_books) )
272
272
}
273
- LoadedBook :: Single ( ref book) => {
273
+ LoadedBook :: Single ( book) => {
274
274
let preprocess_ctx = PreprocessorContext :: new (
275
275
self . root . clone ( ) ,
276
276
None ,
@@ -367,6 +367,9 @@ impl MDBook {
367
367
}
368
368
RustEdition :: E2021 => {
369
369
cmd. args ( & [ "--edition" , "2021" ] ) ;
370
+ } ,
371
+ RustEdition :: E2024 => {
372
+ cmd. args ( & [ "--edition" , "2024" ] ) ;
370
373
}
371
374
}
372
375
}
@@ -650,7 +653,7 @@ fn preprocessor_should_run(
650
653
let key = format ! ( "preprocessor.{}.renderers" , preprocessor. name( ) ) ;
651
654
let renderer_name = renderer. name ( ) ;
652
655
653
- if let Some ( Value :: Array ( ref explicit_renderers) ) = cfg. get ( & key) {
656
+ if let Some ( Value :: Array ( explicit_renderers) ) = cfg. get ( & key) {
654
657
return explicit_renderers
655
658
. iter ( )
656
659
. filter_map ( Value :: as_str)
0 commit comments