@@ -1240,6 +1240,7 @@ crate fn rust_code_blocks(md: &str, extra_info: &ExtraInfo<'_, '_>) -> Vec<RustC
1240
1240
if !lang_string. rust {
1241
1241
continue ;
1242
1242
}
1243
+ let is_ignore = lang_string. ignore != Ignore :: None ;
1243
1244
let syntax = if syntax. is_empty ( ) { None } else { Some ( syntax. to_owned ( ) ) } ;
1244
1245
let ( code_start, mut code_end) = match p. next ( ) {
1245
1246
Some ( ( Event :: Text ( _) , offset) ) => ( offset. start , offset. end ) ,
@@ -1250,7 +1251,7 @@ crate fn rust_code_blocks(md: &str, extra_info: &ExtraInfo<'_, '_>) -> Vec<RustC
1250
1251
range : offset,
1251
1252
code,
1252
1253
syntax,
1253
- is_ignore : lang_string . ignore != Ignore :: None ,
1254
+ is_ignore,
1254
1255
} ) ;
1255
1256
continue ;
1256
1257
}
@@ -1261,15 +1262,15 @@ crate fn rust_code_blocks(md: &str, extra_info: &ExtraInfo<'_, '_>) -> Vec<RustC
1261
1262
range : offset,
1262
1263
code,
1263
1264
syntax,
1264
- is_ignore : lang_string . ignore != Ignore :: None ,
1265
+ is_ignore,
1265
1266
} ) ;
1266
1267
continue ;
1267
1268
}
1268
1269
} ;
1269
1270
while let Some ( ( Event :: Text ( _) , offset) ) = p. next ( ) {
1270
1271
code_end = offset. end ;
1271
1272
}
1272
- ( syntax, code_start, code_end, offset, true , lang_string . ignore != Ignore :: None )
1273
+ ( syntax, code_start, code_end, offset, true , is_ignore )
1273
1274
}
1274
1275
CodeBlockKind :: Indented => {
1275
1276
// The ending of the offset goes too far sometime so we reduce it by one in
0 commit comments