File tree 1 file changed +12
-16
lines changed
1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -611,22 +611,18 @@ fn check_blocks_idempotency(blocks: &Vec<CodeBlock>) {
611
611
) ) ) ;
612
612
failures += 1 ;
613
613
} else {
614
- for & ( ref file_name, ref text) in & file_map {
615
- if let FileName :: Custom ( ref file_name) = * file_name {
616
- if file_name == "stdin" {
617
- let compare = make_diff ( & block. code_block , text, DIFF_CONTEXT_SIZE ) ;
618
- if !compare. is_empty ( ) {
619
- let mut mismatches = HashMap :: new ( ) ;
620
- mismatches. insert ( PathBuf :: from ( "Configurations.md" ) , compare) ;
621
- print_mismatches ( mismatches, |line_num| {
622
- format ! (
623
- "\n Mismatch at Configurations.md:{}:" ,
624
- line_num + block. code_block_start_line - 1
625
- )
626
- } ) ;
627
- failures += 1 ;
628
- }
629
- }
614
+ for & ( ref _file_name, ref text) in & file_map {
615
+ let compare = make_diff ( & block. code_block , text, DIFF_CONTEXT_SIZE ) ;
616
+ if !compare. is_empty ( ) {
617
+ let mut mismatches = HashMap :: new ( ) ;
618
+ mismatches. insert ( PathBuf :: from ( "Configurations.md" ) , compare) ;
619
+ print_mismatches ( mismatches, |line_num| {
620
+ format ! (
621
+ "\n Mismatch at Configurations.md:{}:" ,
622
+ line_num + block. code_block_start_line - 1
623
+ )
624
+ } ) ;
625
+ failures += 1 ;
630
626
}
631
627
}
632
628
}
You can’t perform that action at this time.
0 commit comments