Skip to content

Commit 0982a28

Browse files
petrochenkovYamakaky
authored andcommitted
rposition() -> rev().position() (#2)
1 parent 227eab0 commit 0982a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys_common/backtrace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn filter_frames(frames: &[Frame],
154154
let skipped_before = frames.iter().position(|frame| {
155155
is_good_frame(*frame, BAD_PREFIXES_TOP)
156156
}).unwrap_or(frames.len());
157-
let skipped_after = frames[skipped_before..].iter().rposition(|frame| {
157+
let skipped_after = frames[skipped_before..].iter().rev().position(|frame| {
158158
is_good_frame(*frame, BAD_PREFIXES_BOTTOM)
159159
}).unwrap_or(frames.len() - skipped_before);
160160

0 commit comments

Comments
 (0)