Skip to content

Commit fa2a444

Browse files
committed
Make Clippy happy
1 parent a72fcff commit fa2a444

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cast_checks/tests/location.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ fn accuracy() {
3232
.lines()
3333
.filter_map(|line| {
3434
if line.starts_with("thread") {
35-
line.split(' ').last().and_then(|s| s.strip_suffix(':'))
35+
line.split(' ')
36+
.next_back()
37+
.and_then(|s| s.strip_suffix(':'))
3638
} else {
3739
None
3840
}

0 commit comments

Comments
 (0)