Skip to content

Commit 6652fe1

Browse files
committed
libc-test: remove useless clone in build.rs
1 parent 28ab9b9 commit 6652fe1

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)