Skip to content

Commit

Permalink
Fix clippy warning (#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Jan 20, 2025
1 parent 636d370 commit 243b9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ pub(crate) fn rustc_macosx_target_version(target: &str) -> (u16, u16) {
let target_version = std::str::from_utf8(&output.stdout)
.unwrap()
.split('=')
.last()
.next_back()
.and_then(|v| v.trim().split_once('.'));
if let Some((major, minor)) = target_version {
let major: u16 = major.parse().unwrap();
Expand Down

0 comments on commit 243b9f5

Please sign in to comment.