File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1028,14 +1028,16 @@ impl ManageOutFiles for OutFiles {
10281028 // Could have hit system limit for open files.
10291029 // Try to close one previously instantiated writer first
10301030 for ( i, out_file) in self . iter_mut ( ) . enumerate ( ) {
1031- if i != idx && out_file. maybe_writer . is_some ( ) {
1032- out_file. maybe_writer . as_mut ( ) . unwrap ( ) . flush ( ) ?;
1033- out_file. maybe_writer = None ;
1034- out_file. is_new = false ;
1035- count += 1 ;
1036-
1037- // And then try to instantiate the writer again
1038- continue ' loop1;
1031+ if i != idx {
1032+ if let Some ( writer) = out_file. maybe_writer . as_mut ( ) {
1033+ writer. flush ( ) ?;
1034+ out_file. maybe_writer = None ;
1035+ out_file. is_new = false ;
1036+ count += 1 ;
1037+
1038+ // And then try to instantiate the writer again
1039+ continue ' loop1;
1040+ }
10391041 }
10401042 }
10411043
You can’t perform that action at this time.
0 commit comments