We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b2d9e commit 8db2742Copy full SHA for 8db2742
tests/util/mod.rs
@@ -81,7 +81,7 @@ impl Output {
81
assert!(self.success());
82
for marker in self.stdout.matches(OUTPUT_MARKER) {
83
let i = subslice_offset(&self.stdout, marker).expect("couldn't find marker in output");
84
- let before_cp = self.stdout[..i].chars().rev().next().unwrap_or('\n');
+ let before_cp = self.stdout[..i].chars().next_back().unwrap_or('\n');
85
if !(before_cp == '\r' || before_cp == '\n') {
86
continue;
87
}
0 commit comments