Skip to content

Commit

Permalink
Auto merge of #3315 - chenx97:test-werror, r=JohnTitor
Browse files Browse the repository at this point in the history
libc-test: remove useless clone in build.rs

To fix recent CI failures
  • Loading branch information
bors committed Aug 12, 2023
2 parents 28ab9b9 + 6652fe1 commit 629eb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-test/build.rs
Expand Up @@ -642,7 +642,7 @@ fn test_windows(target: &str) {

// Windows uppercase structs don't have `struct` in front:
t if is_struct => {
if ty.clone().chars().next().unwrap().is_uppercase() {
if ty.chars().next().unwrap().is_uppercase() {
t.to_string()
} else if t == "stat" {
"struct __stat64".to_string()
Expand Down

0 comments on commit 629eb19

Please sign in to comment.