File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ fn should_skip_module<T: FormatHandler>(
91
91
}
92
92
93
93
fn echo_back_stdin ( input : & str ) -> Result < FormatReport , ErrorKind > {
94
- if let Err ( e) = io:: stdout ( ) . write_all ( input. as_bytes ( ) ) {
95
- return Err ( From :: from ( e) ) ;
96
- }
94
+ io:: stdout ( ) . write_all ( input. as_bytes ( ) ) ?;
97
95
Ok ( FormatReport :: new ( ) )
98
96
}
99
97
Original file line number Diff line number Diff line change @@ -751,7 +751,8 @@ fn idempotent_check(
751
751
752
752
let target = sig_comments. get ( "target" ) . map ( |x| & ( * x) [ ..] ) ;
753
753
754
- handle_result ( write_result, target) . map ( |_| format_report)
754
+ handle_result ( write_result, target) ?;
755
+ Ok ( format_report)
755
756
}
756
757
757
758
// Reads test config file using the supplied (optional) file name. If there's no file name or the
You can’t perform that action at this time.
0 commit comments