Skip to content

Commit a0f20f0

Browse files
committed
auto merge of #12765 : TeXitoi/rust/fix-shootout-reverse-complement, r=alexcrichton
2 parents b389615 + 7956a11 commit a0f20f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/test/bench/shootout-reverse-complement.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-android doesn't terminate?
12+
// ignore-pretty
1213

1314
use std::iter::range_step;
1415
use std::io::{stdin, stdout, File};
@@ -73,10 +74,11 @@ fn main() {
7374
*front = complements[*back];
7475
*back = tmp;
7576
}
77+
(Some(last), None) => *last = complements[*last], // last element
7678
_ => break // vector exhausted.
7779
}
7880
}
7981
}
8082

81-
stdout().write(data);
83+
stdout().write(data).unwrap();
8284
}

0 commit comments

Comments
 (0)