Skip to content

Commit 243b9f5

Browse files
authored
Fix clippy warning (#2445)
1 parent 636d370 commit 243b9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ pub(crate) fn rustc_macosx_target_version(target: &str) -> (u16, u16) {
11471147
let target_version = std::str::from_utf8(&output.stdout)
11481148
.unwrap()
11491149
.split('=')
1150-
.last()
1150+
.next_back()
11511151
.and_then(|v| v.trim().split_once('.'));
11521152
if let Some((major, minor)) = target_version {
11531153
let major: u16 = major.parse().unwrap();

0 commit comments

Comments
 (0)