Skip to content

Commit 5ff0342

Browse files
dlonChrisDenton
andauthored
Use rsplit instead of split
Co-authored-by: Chris Denton <[email protected]>
1 parent 8bcc286 commit 5ff0342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/windows/find_tools.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ mod impl_ {
406406
.stderr
407407
.split(|&b| b == b'\n' || b == b'\r')
408408
.next()?
409-
.split(|&b| b == b' ')
410-
.last()?;
409+
.rsplit(|&b| b == b' ')
410+
.next()?;
411411

412412
match cl_arch {
413413
b"x64" => Some("x64"),

0 commit comments

Comments
 (0)