Skip to content

Commit 629eb19

Browse files
committed
Auto merge of #3315 - chenx97:test-werror, r=JohnTitor
libc-test: remove useless clone in build.rs To fix recent CI failures
2 parents 28ab9b9 + 6652fe1 commit 629eb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ fn test_windows(target: &str) {
642642

643643
// Windows uppercase structs don't have `struct` in front:
644644
t if is_struct => {
645-
if ty.clone().chars().next().unwrap().is_uppercase() {
645+
if ty.chars().next().unwrap().is_uppercase() {
646646
t.to_string()
647647
} else if t == "stat" {
648648
"struct __stat64".to_string()

0 commit comments

Comments
 (0)