Skip to content

Commit

Permalink
Use rsplit instead of split
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Denton <christophersdenton@gmail.com>
  • Loading branch information
dlon and ChrisDenton authored Dec 4, 2024
1 parent 8bcc286 commit 5ff0342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/find_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ mod impl_ {
.stderr
.split(|&b| b == b'\n' || b == b'\r')
.next()?
.split(|&b| b == b' ')
.last()?;
.rsplit(|&b| b == b' ')
.next()?;

match cl_arch {
b"x64" => Some("x64"),
Expand Down

0 comments on commit 5ff0342

Please sign in to comment.